phk
e03d163b72
Make minor, major and makedev inline functions so we gain type checking
...
and prevent compile time creation of dev_t's from happening again.
1999-05-09 18:03:48 +00:00
peter
5fd0058fc8
We don't have composite devices here either.
1999-05-09 17:48:23 +00:00
phk
91e7a75ba8
No point in swapdev being a static global when used only locally.
1999-05-09 17:28:00 +00:00
phk
a3eb84b2f9
config(8) lobotomy, please see commit msg in sys.
...
(I have no idea why cvs didn't take these changes before.)
1999-05-09 17:23:38 +00:00
peter
905ee53485
Missing revision markers.
1999-05-09 17:12:25 +00:00
peter
41b420910c
Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:
...
#define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data)
.. to 2.2.x and 3.x if people think it's worth it. Driver writers can do
this if it's not defined. (The reason for this is that I'm trying to
progressively eliminate use of linker_sets where it hurts modularity and
runtime load capability, and these DATA_SET's keep getting in the way.)
1999-05-09 17:07:30 +00:00
obrien
71c8afa0dd
Turn on compat22 dist.
1999-05-09 17:00:04 +00:00
peter
4889b510f0
Optimize out a couple of places where com_addr() is used twice in a row,
...
although this is pretty trivial. devclass_get_softc() is a tad more
expensive than the old com_addr() implementation. If Bruce is really
worried about the cost of this, it could always be changed so that the
softc pointer is stored in a local array again.
1999-05-09 16:56:38 +00:00
phk
3e9a4fabc3
Oops. If ROOTDEVNAME isn't defined, have -r call -a.
1999-05-09 16:56:09 +00:00
phk
1ce3de9409
no longer used.
1999-05-09 16:46:38 +00:00
phk
f3f6ab89ed
Major lobotomy of config(8). The
...
config kernel mumble mumble
line has been obsoleted and removed and with it went all knowledge of
devices on the part of config.
You can still configure a root device (which is used if you give
the "-r" flag) but now with an option:
options ROOTDEVNAME=\"da0s2e\"
The string is parsed by the same code as at the "boot -a" prompt.
At the same time, make the "boot -a" prompt both more able and more
informative.
ALPHA/PC98 people: You will have to adapt a few simple changes
(defining rootdev and dumpdev somewhere else) before config works
for you again, sorry, but it's all in the name of progress.
1999-05-09 16:46:01 +00:00
peter
f4e8021f39
Delete the #if'ed out old isa bus probe/attach routines
1999-05-09 16:39:24 +00:00
peter
7218b20b24
Make the pci vga detection work so that the card is claimed and it's
...
interrupt configuration reported. (I just discovered my vga card is
being configured for irq 5... :-) This is just reporting. The vga_isa
driver does the real work using the isa compat mappings.
1999-05-09 16:32:00 +00:00
peter
5350e97b5a
Fix a couple of warnings and some bitrot in comments.
1999-05-09 16:04:14 +00:00
peter
586a0280e6
Always use the module system, rather than in an #ifdef.
1999-05-09 15:57:52 +00:00
peter
263e0071ef
Argh, don't clobber the pci device list if there are multiple busses!
...
(An AGP counts as a PCI bus, it seems...)
This stopped 'pciconf -l' from working on AGP or PCI->PCI bridge systems.
1999-05-09 15:54:04 +00:00
kris
4528605ba4
More typos.
1999-05-09 13:46:31 +00:00
kris
162651fa40
Typo.
...
Obtained from: OpenBSD
1999-05-09 13:41:19 +00:00
peter
5182d28347
Quiet a warning, put a #if 0 around some (I believe) unused static structs.
1999-05-09 13:21:06 +00:00
phk
5a312ef1f6
major(something) can never become NODEV.
1999-05-09 13:13:52 +00:00
phk
72107aa299
remove cast from dev_t to dev_t.
1999-05-09 13:11:37 +00:00
peter
cecd2635d9
Move opt_sio.h options to conf/options and activate in isa/sio.c
1999-05-09 13:10:49 +00:00
phk
e05bc3b49a
Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference between
...
a major number for a dev_t.
1999-05-09 13:00:50 +00:00
dfr
7d04d62126
Remove DDB.
1999-05-09 11:42:19 +00:00
dfr
d04db09021
Back out the last change to disk.c - a kernel change removed the need.
...
Enabled writing to the disklabel when writing a disk (only affects alpha).
1999-05-09 11:34:58 +00:00
dfr
94c48499c7
Hack the diskslice stuff so that it allows the alpha sysinstall to
...
manipulate the disklabel. This is almost certainly not the right way
to do it but I'm desperate.
1999-05-09 11:27:41 +00:00
phk
e8f4fc4a1d
add some amount of sanity to the way the gdb stuff finds its device.
...
I'm not too happy about the result either, but at least it has less
chance of backfiring.
This particular feature could be called "a mess" without offending
anybody.
1999-05-09 10:51:13 +00:00
peter
e85d75ef71
Fix two warnings.
1999-05-09 10:45:54 +00:00
peter
0fb0af2fe2
Fix warnings.
1999-05-09 10:43:54 +00:00
phk
83bed983cb
Yet a major/dev_t confusion
...
Spotted by Bruce.
1999-05-09 10:42:39 +00:00
phk
20c48466e9
siocngetc & putc can be staticized.
1999-05-09 10:28:50 +00:00
phk
aa8b804336
Yet another place which knew too much. Still not sure how much
...
good this does in the end.
1999-05-09 10:25:30 +00:00
phk
5311a954e6
fix some DRIVER_TYPE / INTR_TYPE confusions.
1999-05-09 09:56:52 +00:00
phk
bea63b9cdb
Don't confuse dev_t and major numbers in DEV_MODULE()
1999-05-09 08:58:45 +00:00
phk
2ed2581bdf
Peter beat me to half this patch, but didn't do the other half:
...
set d_bmaj
don't cast a dev_t to int before comparing to NODEV
1999-05-09 08:18:12 +00:00
peter
09fa1aef80
Comment advising ordering of cdevsw_add and bdevsw_add is obsolete (no
...
bdevsw_add any more).
1999-05-09 08:10:17 +00:00
phk
3323f4372e
Duh, bdevsw() takes dev_t arg.
1999-05-09 07:56:36 +00:00
jb
14af5de490
Mutex test program.
...
Submitted by: Daniel Eischen <eischen@vigrid.com>
1999-05-09 07:55:24 +00:00
jb
18a2ce4cb6
Add mutex test program.
1999-05-09 07:50:31 +00:00
kato
cdd495662b
Removed DRIVER_TYPE_TTY field.
1999-05-09 05:02:26 +00:00
yokota
143736b6b7
Reserve a major number for the frame buffer device.
1999-05-09 05:02:15 +00:00
kato
2820aa3956
Sync with sys/isa/sio.c revision 1.234.
1999-05-09 05:00:54 +00:00
yokota
015b8b835b
Don't confuse cursor keys with numpad keys when composing a char code.
...
PR: kern/10988
1999-05-09 05:00:19 +00:00
yokota
b62c543b38
Minor tweak after the introduction of new-bus to i386; properly
...
check "disabled" and "flags" probe hints.
1999-05-09 04:59:24 +00:00
yokota
aea63d1e76
Revive APM hooking code for i386 arch now that the same source file is
...
used for both i386 and alpha (the code was in sys/i386/isa/psm.c, but
was disabled when ported to alpha.)
1999-05-09 04:58:35 +00:00
yokota
58c19147f4
Make apm_probe() properly return an error code when APM BIOS calls
...
failed, so that the apm driver won't be attached.
1999-05-09 04:58:13 +00:00
yokota
3f092f3796
Added backward compatibility to set key repeat rate.
...
Requested by: bde
1999-05-09 04:57:51 +00:00
kato
378d14c845
Removed DRIVER_TYPE_TTY field.
1999-05-09 04:56:42 +00:00
kato
5baa450667
Sync with sys/isa/atkbd_isa.c revision 1.4.
1999-05-09 04:53:58 +00:00
kato
8ced816ac4
Sync with sys/i386/isa/wd.c revision 1.197.
1999-05-09 04:42:10 +00:00