Commit Graph

22521 Commits

Author SHA1 Message Date
macallan f9794c16db add screen blanking support 2007-09-01 03:45:14 +00:00
xtraeme 822a96ea64 sme_event_register: sme_sensor_upint32() was being called even when
adding events via sme_event_drvadd(), fix it.
2007-09-01 00:12:07 +00:00
xtraeme 63f1decdb2 - sme_unregister_all: there's no need to use a struct sysmon_envsys as
argument, just pass sme->sme_name to it.
- sysmon_envsys_register: drop the array in all cases, not just when
  there's an error. The reference is stored in the dictionary anyway...
- Update some comments.
2007-08-31 22:44:39 +00:00
xtraeme e71bfccc23 Merge sme_event_add() into sme_event_register()... there's no need
to have two different functions for this.
2007-08-31 10:13:27 +00:00
xtraeme ab98913282 Simplify sme_event_add() and fix a problem when updating critical
values.
2007-08-31 09:12:55 +00:00
xtraeme 097c13a522 Use a different case for the CX700 IDE Controller to print the
attach message and when setting the UDMA mode.
2007-08-31 01:42:48 +00:00
xtraeme ee2b8027ff - Proper VIA CX700 IDE Controller support (missed in previous).
- Attach to the NVIDIA MCP67 IDE and SATA controllers.
2007-08-31 01:37:46 +00:00
xtraeme 930907a507 Proper ICH8M IDE Controller support (missed in previous). 2007-08-31 01:35:07 +00:00
xtraeme 5f6ecf6711 Attach to the VIA CX700 IDE Controller. 2007-08-31 01:22:12 +00:00
xtraeme 6fe677c273 regen 2007-08-31 01:17:39 +00:00
xtraeme 116488dd92 + VIA CX700 IDE Controller 2007-08-31 01:17:20 +00:00
xtraeme d67fa603fc Add a few KASSERT(mutex_owned(&foo_lock)) as suggested by Andrew Doran. 2007-08-31 00:35:08 +00:00
xtraeme 8de967d769 Attach to the ICH8M IDE Controller. 2007-08-31 00:01:17 +00:00
xtraeme fde22f7617 regen 2007-08-30 23:59:21 +00:00
xtraeme a1032767cf + Intel 82801HBM IDE Controller 2007-08-30 23:59:01 +00:00
xtraeme a7e0991f20 Attach to the ICH9 SATA devices. 2007-08-30 23:55:03 +00:00
xtraeme 885829cb69 More misc changes for sysmon_envsys(9):
- Add the SLIST for sensor descriptions and sme_uniqsensors into the
  struct sysmon_envsys (it's per device now).
- Use only one common struct with three members for the static tables
  (there's no need to have different structs just for them).
- While initializing/destroying the events framework, use the
  strategy specified by Andrew Doran in:
  http://mail-index.netbsd.org/tech-kern/2007/06/21/0025.html).

(forgot in previous)
2007-08-30 23:46:29 +00:00
xtraeme d7029deed2 More misc changes for sysmon_envsys(9):
- Add the SLIST for sensor descriptions and sme_uniqsensors into the
  struct sysmon_envsys (it's per device now).
- Use only one common struct with three members for the static tables
  (there's no need to have different structs just for them).
- While initializing/destroying the events framework, use the
  strategy specified by Andrew Doran in:
  http://mail-index.netbsd.org/tech-kern/2007/06/21/0025.html).
2007-08-30 23:44:32 +00:00
xtraeme 9df6f42177 Simplify sysmon_envsys_register() and fix an obvious error in
previous.
2007-08-30 21:31:28 +00:00
xtraeme 1a5f765979 Use a rwlock(9) to protect access while refreshing data in
aiboost_get_value().
2007-08-30 18:29:11 +00:00
xtraeme cac66f76dd Some changes to improve locking on sysmon_envsys(9):
- Remove sme_mtx, a global lock (sme_list_mtx) is used to access to
  the sysmon envsys device.
- Allocate memory with KM_NOSLEEP rather than KM_SLEEP if there's a
  mutex held, to avoid sleeping.
- Remove sysmon_envsys_createplist() and add the logic into
  sysmon_envsys_register().
- sysmon_envsys_register: allocate the array and dictionaries required
  in advance for a device before the locking and adding the objects
  into the array happens.
- Rename sme_make_dictionary() to sme_add_sensor_dictionary() and pass
  to it the dictionary on which the objects will be stored for a sensor.
- Improve locking here and there.

Thanks to Mindaugas Rasiukevicius and Andrew Doran for comments.
2007-08-30 18:01:26 +00:00
jmmv d2525db73d Clear the screen during initialization so that the first messages are not
printed over "unknown garbage" (e.g. the Mac OS desktop).  Agreed with
macallan@.
2007-08-30 15:40:41 +00:00
jmmv 088cadb7c3 Print some details of the framebuffer configuration during attach.
OK'ed by macallan@.
2007-08-30 13:36:27 +00:00
jmmv 90ad1537c2 Properly initialize the palette registers by calling the colormap callback
on all of them.  A typo made it only initialize half of them.  OK'ed by
macallan@.
2007-08-30 13:32:18 +00:00
msaitoh a4237aa2b7 Add more work for the EEPROM reaload sequence.
Fix typo.
2007-08-30 05:48:50 +00:00
macallan 2be61cb9fc attach a /dev/fb* so X can talk to the board 2007-08-30 04:18:18 +00:00
msaitoh b7d1c5d613 EECD_EE_AUTORD is only for 8257{123},80003,ICH{89}.
Will fix "auto read from eeprom failed to complete" problem.
2007-08-30 03:02:23 +00:00
dyoung c19a489b88 Cosmetic: use a name instead of a number for BAR0. 2007-08-30 02:39:11 +00:00
dyoung f59a11881a Constify: LLADDR() -> CLLADDR(). 2007-08-29 22:33:42 +00:00
msaitoh 7c88b47eff add I82566 2007-08-28 01:11:50 +00:00
msaitoh 7e58a97ba9 regen 2007-08-28 01:11:25 +00:00
msaitoh a27bb988f0 add Intel I82566 2007-08-28 01:11:05 +00:00
msaitoh 86b9b947e1 add ICH9
need more work?
2007-08-28 01:10:34 +00:00
msaitoh 1f24e62283 regen 2007-08-28 01:09:28 +00:00
msaitoh 2ef753ba17 add ICH9's Ethers 2007-08-28 01:09:01 +00:00
macallan 699639e68b add hardware cursor support 2007-08-28 00:21:43 +00:00
macallan c86f607779 fix typo 2007-08-28 00:21:04 +00:00
macallan 28ba522d98 add lots of register definitions from the IBM561 datasheet 2007-08-27 19:46:45 +00:00
xtraeme 7479c7d76e Use rw_destroy() in the detach function. Spotted by rmind@. 2007-08-27 17:49:54 +00:00
xtraeme 87186fcca6 Use rwlock(9) rather than lockmgr(9). 2007-08-27 15:57:13 +00:00
dyoung c3db559a5f Constify: use CLLADDR() instead of LLADDR() wherever possible. 2007-08-27 14:48:54 +00:00
xtraeme 862b664446 Apply some KNF. 2007-08-27 12:07:39 +00:00
xtraeme 5d1b643f3f Attach to the ICH9 SMBus device too. 2007-08-27 09:09:22 +00:00
dyoung b4124ae5bd Constify. 2007-08-27 07:33:17 +00:00
xtraeme 079789d3c9 Add missing __KERNEL_RCSID(). 2007-08-27 06:18:55 +00:00
xtraeme 70c59631a7 Cosmetic: "device %d-bit timer" -> "device: %d-bit timer". 2007-08-27 06:17:28 +00:00
xtraeme 31ee4220f6 Add missing __KERNEL_RCSID(). 2007-08-27 06:01:10 +00:00
macallan 639b5a68a6 let userland mmap() the GLint framebuffer and make it visible when switching
to WSDISPLAYIO_MODE_MAPPED - so X with wsfb can run in 24bit colour
2007-08-27 02:03:15 +00:00
macallan 6a9b8ff83c add type for Fujitsu AG-10e 2007-08-27 02:01:23 +00:00
dyoung 71e77a61b4 Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).
2007-08-26 22:45:55 +00:00