nakayama
323fc574b9
Make 32-bit kernels compile with options DEBUG.
2004-03-22 12:21:58 +00:00
nakayama
8b6b7ba030
Make 32-bit kernels compile with options DIAGNOSTIC.
2004-03-22 12:20:52 +00:00
pk
4021f0eb39
Use prom_getpropstring().
2004-03-21 16:29:42 +00:00
pk
e8397400f7
Some more promlib interface conversions.
2004-03-21 16:09:13 +00:00
pk
05a2b2300b
Use the promlib I/O routines.
2004-03-21 15:08:24 +00:00
pk
b865f2441c
`stdin' and `stdout' are obsolete.
2004-03-21 15:07:00 +00:00
pk
107e759b1c
Two commas went missing in last commit.
2004-03-21 14:28:47 +00:00
pk
f7fe3a3531
Partial switch to the promlib interface.
2004-03-21 14:22:52 +00:00
martin
55dfc16be5
Make sure prom_getprop is called with the size pointed to by nitem
...
initialized. (Some of these are more paranoia, but two were actual bugs.)
Print error codes in some panic messages.
2004-03-21 12:50:14 +00:00
petrov
2f1de3c8b2
More on fbnode to prom_stdout_node rename.
2004-03-19 21:10:31 +00:00
pk
d6f1cac110
zs_console_flags: use prom_getoption().
2004-03-19 15:42:46 +00:00
pk
7417e05ce6
Drop fbnode & stdinnode.
2004-03-19 15:31:04 +00:00
pk
6c02638ef2
Sync with sparc: rename
...
stdinnode => prom_stdin_node,
fbnode => prom_stdout_node.
2004-03-19 15:21:42 +00:00
pk
ea53363e84
Rename PROM_getprop*() => prom_getprop*().
2004-03-17 17:04:58 +00:00
pk
fcac5c14aa
Pass the buffer size to PROM_getpropstringA(), as in sparc.
2004-03-17 15:22:57 +00:00
pk
8512c4b642
Use prom_getoption() and drop home-grown string-to-integer conversion code.
2004-03-17 14:03:22 +00:00
pk
6c325ce299
ffb_attach: Use prom_getoption() and drop home-grown string-to-integer
...
conversion code.
2004-03-17 13:58:14 +00:00
snj
d02c32fcce
s/rediculous/ridiculous/
2004-02-13 22:47:04 +00:00
wiz
d20841bb64
Uppercase CPU, plural is CPUs.
2004-02-13 11:36:08 +00:00
petrov
e7595eb1ce
For pci devices without ofw mapping find ino by pci bus/slot/device
...
information, from OpenBSD.
2004-01-21 07:16:07 +00:00
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