tsutsui
1dad999926
Fix address calculation for split segment address when the buffer is
...
crossing boundary in iommu_dvmamap_load().
Fixes E2BIG error on dmamap with smaller boundary size than maxxfersize
(which is used by recent changed pcscp(4)).
While here, some KNF around debug printf etc.
2003-11-16 18:18:59 +00:00
martin
76bfd5ab17
Nuke bcopy/bzero.
2003-11-09 14:28:56 +00:00
petrov
5a0a3beffd
Attach zs to sbus only, current driver cannot attach to mainbus.
2003-10-31 20:06:54 +00:00
christos
44cf8a09e9
Fix uninitialized variable warning.
2003-10-26 19:15:00 +00:00
christos
3684598911
Actually initialize the size that is printed in case of an error, so garbage
...
does not get printed.
2003-10-26 19:14:22 +00:00
petrov
de7eafdbf8
don't initialize an int with NULL.
2003-10-21 08:20:15 +00:00
petrov
1176590ac1
don't use NULL for u_long initialization.
2003-10-21 08:12:46 +00:00
petrov
2514d9e4f2
When establishing interrupt set CPU_UPAID in mapping register
...
so that interrupt would be delivered.
2003-10-11 20:53:14 +00:00
martin
361fe6808c
Make a panic format 32bit safe.
2003-09-15 07:38:22 +00:00
petrov
536f8085b8
Support multisegment dmamap sync, adopted from OpenBSD.
2003-09-08 17:23:15 +00:00
mrg
9e599bdb11
change PROM_getprop() from taking a "void **" for the storage, to a
...
"void *", and do the extra de-reference directly in the function. this
avoids having to cast dozens of different types to "void **", which sets
of GCC3's strict-aliasing. testing by martin@
2003-08-27 15:59:49 +00:00
uwe
86b9436205
Use dev/sun/fbvar.h instead of machine/fbvar.h (which is just an out
...
of date copy of the former).
Compile tested with GENERIC32.
Ok by Martin Husemann <martin@netbsd>.
2003-08-25 19:03:41 +00:00
uwe
bb09aff859
Undo previous as it broke things.
...
There are some scattered implicit RASTERCONSOLE dependencies,
so there should be a better way.
2003-08-25 17:50:22 +00:00
uwe
65aeb1d742
#include "opt_rcons.h"
2003-08-24 17:31:59 +00:00
petrov
53514f157f
Don't set and check absent interrupts on sabre.
2003-08-22 00:46:25 +00:00
petrov
051f6b8a9a
Cosmetic: move DEBUG defines.
2003-08-22 00:45:40 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
petrov
1da0fc9112
It's 2003 now, print newline in attach.
2003-07-30 07:00:32 +00:00
petrov
965244ee25
ansify.
2003-07-24 09:10:43 +00:00
petrov
fd3a71be25
Driver for CP1500/1400 watchdog timer.
2003-07-17 20:54:41 +00:00
lukem
ed51729135
__KERNEL_RCSID()
2003-07-15 02:54:31 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
martin
c101c976d0
Passing struct lwp * instead of struct proc * to device functions.
2003-06-29 10:29:33 +00:00
martin
84a6dd7e55
Passing struct lwp * instead of struct proc * to device functions,
...
replace a homegrown check with proper suser() call.
2003-06-29 10:29:17 +00:00
heas
d00e9c2510
Define option BLINK in option file opt_auxio.h and include it in auxio.c.
...
approved by martin@
2003-06-16 19:24:51 +00:00
fvdl
7dd7f8baa2
Handle 64bit DMA addresses on PCI for platforms that can (currently only
...
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
thorpej
0eff671820
Also pass a type argument to comcnattach() and com_kgdb_attach().
...
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
petrov
49d4047a8f
Pick up from OpenBSD:
...
The sab driver sometimes gets out of sync with the hardware. This can
cause the serial console to hang.
2003-06-13 01:33:32 +00:00
petrov
7c89964036
Use cdevsw_lookup_major.
2003-06-11 22:51:03 +00:00
petrov
175f7ab29d
Comment out debug output.
2003-06-11 22:50:12 +00:00
petrov
49f3f8ccaf
Port of OpenBSD ffb driver written by Jason L. Wright.
2003-05-23 06:51:15 +00:00
nakayama
a8c34ddce5
Avoid comparison is always false warnings in gcc 3.3 w/ 32-bit kernels.
2003-05-17 01:49:59 +00:00
nakayama
67e3486872
Avoid integer constant is too large warnings in gcc 3.3.
2003-05-17 01:48:22 +00:00
nakayama
d0f6668f6d
Avoid strict-alias warnings in gcc 3.3.
2003-05-17 01:38:39 +00:00
martin
57482255bc
When overwriting the cache line size configuration, do not use the magic
...
value 0x10, but instead calculate a line size that is properly aligned
to the IOMMU strbuf cache and our external cache line size.
From FreeBSD.
2003-05-05 07:51:26 +00:00
martin
d22ec31292
Move the bus speed query code into it's own function and make it default
...
to 33 MHz. Cosmetics, no functional change.
2003-05-04 21:36:26 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +00:00
martin
d65cbab3ff
Connect the front panel power button on psycho based machines to sysmon's
...
/dev/power.
XXX - due to the way interrupt handling is structured we have no easy
way to defer clearing the button interrupt until the sysmon callback
has happened and the event is dispatched. We clear it imediately on
return from the interrupt handler. This means we get an interrupt storm
until the button is released, and then start to handle it.
This needs to be fixed! (But with the default application for the power
button does not make a user visible difference.)
2003-04-21 12:14:19 +00:00
nakayama
72911290d9
Comment fixes from OpenBSD.
2003-04-17 12:58:18 +00:00
thorpej
747aa1e024
Use PAGE_SIZE rather than NBPG.
2003-04-01 16:34:58 +00:00
nakayama
aad45dd3ad
PCI-CardBus bridge support for sparc64:
...
- handle devices which has no OBP node.
- move PCI latency-timer initialization from pci_intr_map to
pci_enumerate_bus.
- make PCI bus free space extents for cardbus devices.
- fix PCI config space map size.
- some code integrations.
2003-03-22 06:33:09 +00:00
perry
1f4ad37fe3
"Utilize" has exactly the same meaning as "use," but it is more
...
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-05 00:02:24 +00:00
pk
be1188e00d
Provide locking required by the interrupt handlers running at IPL_SERIAL.
2003-01-28 12:35:31 +00:00
petrov
6383ae6ccb
Don't do anything if there are no streaming buffer cache.
2003-01-16 21:55:52 +00:00
wiz
1035faff1d
writable, not writeable.
2003-01-06 20:30:28 +00:00
thorpej
9c1214153c
Use aprint_normal() for cfprint routines.
2003-01-01 02:20:47 +00:00
pk
725a6aebf7
Remove the `flags' argument from bus_intr_establish().
2002-12-10 13:44:47 +00:00
pk
68817a2024
bus_intr_establish() signature change.
...
The additional `fast trap' argument is ignored in these drivers.
BUS_INTR_ESTABLISH_FASTTRAP and BUS_INTR_ESTABLISH_SOFTINTR are no longer used.
2002-12-10 12:24:05 +00:00
petrov
45a2f80742
Remove duplicate code in iommu_dvmamap_sync.
2002-10-24 23:24:01 +00:00
jdolecek
e0cc03a09b
merge kqueue branch into -current
...
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00