Commit Graph

151952 Commits

Author SHA1 Message Date
bjh21
7da05dea5d There's no need to explicitly deny DMA support, and that causes compile
problems when the kernel doesn't support IDE DMA.
2006-10-01 21:50:33 +00:00
bouyer
6d83e141d6 Map the ISA hole on Xen, which allows us to access the SMBios, which allows
us to find the IPMI address. Add IPMI support on Xen (commented out for now)
2006-10-01 21:36:11 +00:00
bjh21
bcef78957e Don't explicitly specify no DMA support, since that doesn't work if the kernel
doesn't support IDE DMA at all.
2006-10-01 21:34:30 +00:00
macallan
b6a2386cce Let everyone use the same ticks_per_intr. Doh. 2006-10-01 20:38:35 +00:00
elad
65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
reinoud
c3af0f9a94 In gcc4 structures are differently aligned compared to gcc3. Lots of
structures can thus be misaligned for DMA when declared on stack.

The current atapi code accepts the misaligned dma's only screw's them up.
This small patch disables DMA for the rare transactions that are
misaligned. Note that all bulk-transfers are aligned due to page sizes.

See PR kern/34689
2006-10-01 20:10:31 +00:00
elad
c443814068 Fix misleading error message (from PR/32519). 2006-10-01 19:43:15 +00:00
elad
bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
manu
7be862b0db Check that iph1->remote is not NULL before using it (Coverity 3436) 2006-10-01 19:23:57 +00:00
elad
e8373398dc Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks! 2006-10-01 18:56:21 +00:00
bouyer
b30c96cee8 Note ipmi(4) 2006-10-01 18:45:07 +00:00
bouyer
30f7dd0222 Add manpage for new ipmi driver. 2006-10-01 18:43:11 +00:00
bouyer
020e3d1ae1 Add ipmi(4) driver, from OpenBSD. This requires SMBios support, so add
SMBios detection and mapping to bios32.c, also from OpenBSD (for now this
is only compiled in if ipmi(4) is configured). The sensors and watchdog are
accessible though envsys(4).
Works on i386; some work is needed on amd64 to access the BIOS. It would
eventually work on Xen if the SMBios is accessible (to be tested).
2006-10-01 18:37:54 +00:00
martin
787035550f When setting parameters, we should not only calculate the settings but
better write them back to the chip.
2006-10-01 17:31:47 +00:00
martin
d53ffe65a4 Use device_xname() accessor 2006-10-01 17:21:29 +00:00
elad
3bd66d639f Fix typos (tty -> tp), pointed out by Matt Fleming, thanks! 2006-10-01 16:50:11 +00:00
sketch
de3bf5da0e Tidy output so it matches other rc scripts. 2006-10-01 15:17:51 +00:00
bjh21
399f77e7c3 wdsc now uses an MI WD33C93 driver. 2006-10-01 15:02:49 +00:00
bjh21
5c1cdfc365 Add a driver for sec(4). 2006-10-01 15:01:11 +00:00
bjh21
9444683406 Add a sec(4) manual page. 2006-10-01 14:59:05 +00:00
bjh21
6f0b467d92 Mention sec(4). 2006-10-01 13:05:28 +00:00
bjh21
a4c2f4b0d0 Add sec(4). 2006-10-01 13:05:05 +00:00
pavel
b4d9afa72c In pf, there are lots of #ifdef ALTQ, but our ALTQ is not what pf expects,
and if ALTQ and pf are both enabled, it leads to compile errors. So,
change all tests for ALTQ to ALTQ_NEW, which won't be defined.

This allows simultaneous compilation of pf and ALTQ and is a temporary
measure before the peter-altq brach is merged.

Tested and approved by Peter Postma.
2006-10-01 12:52:24 +00:00
bjh21
5375dc7f10 New driver, sec(4), for the Acorn SCSI Expansion Card. Unlike asc(4), this
driver uses the board's DMA system, uses the machine-independent WD33C93
driver, works on NetBSD/acorn26, and doesn't share a name with six other
machine-dependent SCSI drivers.  Not tested on acorn32, but it seems to
work tolerably well on my A540.
2006-10-01 12:39:35 +00:00
itohy
2a96724f93 Change Id to NetBSD 2006-10-01 12:11:52 +00:00
tnozaki
0490c7eba2 fwprintf(stderr) may coredump, when LC_CTYPE locale is set none C/POSIX.
make sure to initialize struct __sfileext in FILE.
2006-10-01 10:29:21 +00:00
martin
3cda2d1ef3 Oops, now *realy* do print the non-truncated firmware boot path 2006-10-01 10:15:24 +00:00
plunky
b1b95bf647 Reduce memory usage by not allocating a chunk for a bitmask. 2006-10-01 10:13:54 +00:00
martin
6125ef30d2 Print the raw bootpath value 2006-10-01 10:04:13 +00:00
martin
9842f0088d Use more device_ accessor macros 2006-10-01 10:02:28 +00:00
itohy
b2d7fb48f1 Use ATA timing, instead of busmaster wait, for adding waits.
Use default wait value 0x01.
2006-10-01 09:53:08 +00:00
elad
69522b1b54 Add 'struct tty;', pointed out by dogcow@, thanks! 2006-10-01 09:06:41 +00:00
tsutsui
6740d1fc1c Don't forget to initialize obio_space_tag. 2006-10-01 06:26:01 +00:00
plunky
9fcb439a02 fix silent dependencies (uintN_t) 2006-10-01 06:08:08 +00:00
tsutsui
def8ea24fa u_int8_t -> uint8_t 2006-10-01 06:02:53 +00:00
tsutsui
067fc6ddda Fix function argument types in description. 2006-10-01 06:01:47 +00:00
tsutsui
cd4f2a86f4 - pc532 is ${MACHINE}, not ${MACHINE_ARCH}; use ns32k
- fix a comment (sh5 has been switched to gcc4)
2006-10-01 05:06:20 +00:00
tsutsui
ed30e7e8a0 Note sun3 bus_space(9). 2006-10-01 05:00:37 +00:00
tsutsui
4cd045d8ce sh5 and hppa have been switched to gcc4. 2006-10-01 04:57:47 +00:00
tsutsui
d23b794c9e First attempt at bus_space(9) support for sun3 with common sun68k/bus.c:
- make sun3 port use common sun68k files as much as possible
- add temporary options _SUN2_ in std.sun2 until sun3 can share all
  sun68k files (autoconf.c and isr.c are not yet)
- move sun68kvme declaration temporary as well from files.sun68k to files.sun2
- rename and move sun68k_find_prom_map() function to MD sources since it
  can't be shared with sun3
- add bus tag members to struct confargs and initilize them where appropriate

XXX1: MD bus_dma(9) backends are not implemented (yet).
XXX2: more code (obio etc.) should be shared among sun3, sun3x and sun2.
2006-10-01 03:53:27 +00:00
jnemeth
51cc6c4041 PR/34654 -- Peter Szilagyi -- add support for Belkin F5D6050 802.11b dongle 2006-10-01 02:06:34 +00:00
hubertf
fe81bd2f72 Add "list -n" to print ID and class numerical, instead of resolving to strings:
miyu% pcictl /dev/pci1 list
	001:00:0: ATI Technologies Rage Fury MAXX AGP 4x (TMDS) (VGA display)
	miyu% pcictl /dev/pci1 list -n
	001:00:0: 0x50461002 (0x3000000)

OK'd by thorpej@
2006-10-01 00:13:27 +00:00
hubertf
b850659285 Revert previous commit - just keep logfiles around, don't nuke them on
upgrades.
2006-09-30 22:50:41 +00:00
manu
c7242e7e9f emove dead code (Coverity 4165) 2006-09-30 21:49:37 +00:00
manu
07b750b745 Fix memory leak (Coverity 4179) 2006-09-30 21:38:39 +00:00
manu
df69765a89 update the scripts for wrorking around routing problems on NetBSD 2006-09-30 21:22:21 +00:00
jld
af0234e90d Remove erroneous boilerplate about VOP_POLL's return value (which was
already described correctly earlier in the paragraph).
2006-09-30 21:18:38 +00:00
jld
0ebf778b9d The poll routine needs to return POLLERR on error, not an errno. Sorry
about that.  Pointed out by Juergen Hannken-Illjes in mail.
2006-09-30 21:00:13 +00:00
elad
f831edb7d0 Some mdoc cleanup. 2006-09-30 20:14:53 +00:00
elad
b8a339347f Implement the "device" scope.
It uses an authorization wrapper per device class on the system to
ensure type-safety.

For now, it supports only terminal (TTY) devices, and has two actions
for them: "open terminal" and "privileged set". Sample usage has been
added to i386 and hp300 code for reference.

Update documentation.
2006-09-30 20:05:57 +00:00