Commit Graph

20602 Commits

Author SHA1 Message Date
christos
52f01eaf1c remove lhs cast for gcc4 2006-07-17 19:29:31 +00:00
christos
ef1750eb29 make APM_POWER_PRINT compile. 2006-07-17 13:23:46 +00:00
rillig
f2634b6a2b Reordered the declaration-specifiers so that "inline" comes before
"int", which fixes a gcc warning.
2006-07-16 06:32:42 +00:00
rillig
e769ad7ca4 Added type information for the parameter r of isapnp_read_reg. 2006-07-16 06:01:03 +00:00
elad
a904c6895a update my email on the copyright to @netbsd.org 2006-07-15 16:48:51 +00:00
elad
a890e27076 move veriexec_clear() from dev/verified_exec.c to kern/kern_verifiedexec.c 2006-07-15 16:43:35 +00:00
elad
904a157292 some cleanup and fixes:
- fix possible panic and vfs refcnt issue
  - use log(9) instead of printf(9) where possible
  - indent
  - stop logging fsid/fileid
2006-07-15 16:33:16 +00:00
elad
b5d09ef065 okay, since there was no way to divide this to two commits, here it goes..
introduce fileassoc(9), a kernel interface for associating meta-data with
files using in-kernel memory. this is very similar to what we had in
veriexec till now, only abstracted so it can be used more easily by more
consumers.

this also prompted the redesign of the interface, making it work on vnodes
and mounts and not directly on devices and inodes. internally, we still
use file-id but that's gonna change soon... the interface will remain
consistent.

as a result, veriexec went under some heavy changes to conform to the new
interface. since we no longer use device numbers to identify file-systems,
the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now
kern.veriexec.tableN.* where 'N' is NOT the device number but rather a
way to distinguish several mounts.

also worth noting is the plugging of unmount/delete operations
wrt/fileassoc and veriexec.

tons of input from yamt@, wrstuden@, martin@, and christos@.
2006-07-14 18:41:40 +00:00
gdamore
e19a48dbd2 Cleanup old aucom entries. Left marked obsolete in majors, and removed from
dev/DEVNAMES.
2006-07-14 17:44:07 +00:00
gdamore
4c26da3f0e Add support for 10-bit addressing, per i2c specs. This has not been tested
with any actual 10-bit devices (as I don't have any), but it doesn't seem to
impact 7-bit addressing any.  Approved by christos@, briggs@, and thorpej@.
2006-07-14 17:25:17 +00:00
seanb
13d47e9c25 Consistently establish / disestablish shutdown hook
in the bus layer and remove from common ath_attach().
Having it in both layers (on some bus architectures)
was causing a double call to ath_stop() on shutdown
which in turn was tickling the bus lockup described
therin on slower machines.
2006-07-14 13:37:25 +00:00
xtraeme
911aafad9f Make this build again and fix the bus_space_tag_t member of the softc,
it's defined in the com_regs struct now.
2006-07-14 05:02:00 +00:00
gdamore
34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
gdamore
b67e43bbbc Register name for "psm" driver. 2006-07-13 22:05:53 +00:00
kent
c02a4b5cc3 regen for VT82xx HDA 2006-07-13 04:00:13 +00:00
kent
656314001f - add VIA VT8237A/8251 High Definition Audio Controller
- add some tabs
2006-07-13 03:59:29 +00:00
kent
5b129585f8 For MCP55, don't check CORBRPRST flag
a part of PR#33741
2006-07-13 03:57:40 +00:00
hira
7c54838d63 Fix typo (discarge -> discharge). 2006-07-12 13:16:36 +00:00
christos
2fbd5d820a Prevent zerodivide (from Kouichirou Hiratsuka) 2006-07-12 11:31:39 +00:00
gson
c14814103c Assert RTS on open. Fixes PR kern/33929. 2006-07-12 07:36:25 +00:00
skrll
b819728719 Note this driver is for the i82596CA and i82596DX/SX chips and provide
links to documentation on developers.intel.com
2006-07-12 05:12:06 +00:00
peter
58224a41e7 Add power hooks for "ep* at pcmcia?".
ok christos@
2006-07-11 22:49:47 +00:00
peter
09f0de7ce4 Add power hooks for "ne* at pcmcia?".
ok christos@
2006-07-11 22:48:37 +00:00
drochner
e16c6a6b67 include machine/bus.h explicitely, fixes build problem 2006-07-11 17:37:14 +00:00
drochner
d94734d110 use timecounter code in dev/ic/acpipmtimer.*,
kill interface attribute in device declaration
2006-07-11 14:47:49 +00:00
simonb
8c6707812d Use c99 uintN_t. 2006-07-11 00:25:42 +00:00
simonb
f0b22f966f Sprinkle some KNF. Still a bit more needed... 2006-07-11 00:18:04 +00:00
simonb
22cbf12aca Remove some incorrect licencing goop. 2006-07-11 00:17:34 +00:00
simonb
a4c494b1d1 Remove some incorrect licencing goop. 2006-07-10 23:22:28 +00:00
simonb
52b60673ac Update for timecounters (s/time.tv_sec/time_second/). 2006-07-10 23:20:43 +00:00
christos
358557d37b fix some field names (Arnaud Lacombe) 2006-07-10 22:46:06 +00:00
xtraeme
d0e49918a6 Attach amdpm timer on AMD8111 too, as was suggested by Nicolas Joly. 2006-07-10 20:11:29 +00:00
christos
26115e2d37 PR/33968: Nicolas Joly: amdpm(4) timer, fix and AMD8111 support
Refactor the code to use different variable names to hold each conf register
and avoid reading/witing the conf space multiple times.
2006-07-10 20:03:42 +00:00
thorpej
55e8bbeb6e Put appropriate prefixes on property names to reduce chances of name
collisions.
2006-07-10 16:28:44 +00:00
fvdl
6bde80fce7 Do not try to disable link devices (using _DIS) at startup. This causes
problems on some systems. Leave the code commented out, we might want
to revisit this at some point in the future.
2006-07-10 09:18:36 +00:00
christos
bb97a3d660 url for M$ file changed. 2006-07-09 19:25:18 +00:00
drochner
bf84051422 some fixes for removable media (USB floppies in particular):
-allow to open RAW_PART, even if readdisklabel() doesn't like what it sees
-fix PERIPH_MEDIA_LOADED toggling on every other open attempt
-Don't reset PERIPH_REMOVABLE if prevent/allow fails - this is normal
 for floppy drives. The flag is required for media change detection.
 Honour XS_CTL_SILENT for the "no door lock" printouts, and set that flag
 where scsipi_prevent() is called during open/close.
Tested with a USB floppy and a USB cardreader.
2006-07-09 17:12:21 +00:00
christos
160a42523a - Tidy up some debugging/diagnostic messages.
- Add a delay for the topic95b after we power on. It makes things work without
  CBB_DEBUG on!
2006-07-08 23:02:55 +00:00
christos
3c00d4c7e1 expose the ioctl internal function now used by the acpi_apm code. 2006-07-08 20:26:06 +00:00
christos
4998e59f23 Add acpi apm attachment based on sysmon hooks. 2006-07-08 20:23:53 +00:00
christos
9ad7368bb4 Make apm an MI backend to be used by the i386 bios implementation and the
acpi implementation. Based on work by jmcneil.
2006-07-08 20:22:19 +00:00
christos
ff1066c12a - all the polling code is stale and broken. Mention it.
- the topic95B bridge does not set CB_SOCKET_STAT_PWRCYCLE
- put back the delay code that was removed *again*.
This makes my libretto 100CT work again.
2006-07-08 20:20:27 +00:00
christos
1a9d8ea2c7 Fix use the proper ioh. 2006-07-08 18:19:01 +00:00
skrll
eb4039be03 KNF some comments and whitespace. 2006-07-08 16:24:08 +00:00
skrll
e5a112d805 Spelling in comments. No functional change. 2006-07-08 16:07:47 +00:00
simonb
5f14059883 Regen. 2006-07-07 01:22:31 +00:00
simonb
bbed75b78f Add another Intel 3945 wireless minipci device id.
Small part of kern/33778 by Jean-Baptiste Campesato.
2006-07-07 01:21:37 +00:00
simonb
90498e88b2 s/writting/writing/. 2006-07-07 00:56:15 +00:00
wrstuden
1b9990ba67 Fix len=-4 issues.
When receiving a packet, if a receive buffer has length 0,
treat it the same way we treat a failed mapping.

Fix contributed by Wasabi Systems.
2006-07-05 23:51:50 +00:00
perry
202456461a Patches contributed by KIYOHARA Takashi, taken from FreeBSD.
These apparently sync up the sources to the current FreeBSD driver.
Tested by Matthias Drochner.
2006-07-05 18:46:42 +00:00