Poul-Henning Kamp
1491050818
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 Wemm
8fb476c521
We don't have composite devices here either.
1999-05-09 17:48:23 +00:00
Poul-Henning Kamp
b19d4b12c0
No point in swapdev being a static global when used only locally.
1999-05-09 17:28:00 +00:00
Poul-Henning Kamp
bb4d56144e
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 Wemm
35ce6c413e
Missing revision markers.
1999-05-09 17:12:25 +00:00
Peter Wemm
579f45fa60
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
David E. O'Brien
9f08adb16f
Turn on compat22 dist.
1999-05-09 17:00:04 +00:00
Peter Wemm
1d361692a7
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
Poul-Henning Kamp
aa713cb898
Oops. If ROOTDEVNAME isn't defined, have -r call -a.
1999-05-09 16:56:09 +00:00
Poul-Henning Kamp
04ab695ebf
no longer used.
1999-05-09 16:46:38 +00:00
Poul-Henning Kamp
b307e58fc7
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 Wemm
b6dc33dbf2
Delete the #if'ed out old isa bus probe/attach routines
1999-05-09 16:39:24 +00:00
Peter Wemm
edc2e3366d
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 Wemm
e37622b251
Fix a couple of warnings and some bitrot in comments.
1999-05-09 16:04:14 +00:00
Peter Wemm
47154c8706
Always use the module system, rather than in an #ifdef.
1999-05-09 15:57:52 +00:00
Peter Wemm
c0ccf7c6b6
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 Kennaway
ee3afcaf3b
More typos.
1999-05-09 13:46:31 +00:00
Kris Kennaway
80bdfd1362
Typo.
...
Obtained from: OpenBSD
1999-05-09 13:41:19 +00:00
Peter Wemm
8baa9b47b6
Quiet a warning, put a #if 0 around some (I believe) unused static structs.
1999-05-09 13:21:06 +00:00
Poul-Henning Kamp
0a346dab99
major(something) can never become NODEV.
1999-05-09 13:13:52 +00:00
Poul-Henning Kamp
61d9c46c46
remove cast from dev_t to dev_t.
1999-05-09 13:11:37 +00:00
Peter Wemm
6f42b336a5
Move opt_sio.h options to conf/options and activate in isa/sio.c
1999-05-09 13:10:49 +00:00
Poul-Henning Kamp
52400704e9
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
Doug Rabson
e3a3d09cb9
Remove DDB.
1999-05-09 11:42:19 +00:00
Doug Rabson
c914395258
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
Doug Rabson
c586a73949
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
Poul-Henning Kamp
3000820ae0
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 Wemm
3f74540725
Fix two warnings.
1999-05-09 10:45:54 +00:00
Peter Wemm
a924771339
Fix warnings.
1999-05-09 10:43:54 +00:00
Poul-Henning Kamp
9cead0b272
Yet a major/dev_t confusion
...
Spotted by Bruce.
1999-05-09 10:42:39 +00:00
Poul-Henning Kamp
1a4dd80a43
siocngetc & putc can be staticized.
1999-05-09 10:28:50 +00:00
Poul-Henning Kamp
90fb336860
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
Poul-Henning Kamp
0510491458
fix some DRIVER_TYPE / INTR_TYPE confusions.
1999-05-09 09:56:52 +00:00
Poul-Henning Kamp
dd3ebe6b04
Don't confuse dev_t and major numbers in DEV_MODULE()
1999-05-09 08:58:45 +00:00
Poul-Henning Kamp
8f0024a54a
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 Wemm
0da14f00bf
Comment advising ordering of cdevsw_add and bdevsw_add is obsolete (no
...
bdevsw_add any more).
1999-05-09 08:10:17 +00:00
Poul-Henning Kamp
33525517b5
Duh, bdevsw() takes dev_t arg.
1999-05-09 07:56:36 +00:00
John Birrell
608fa2c9e7
Mutex test program.
...
Submitted by: Daniel Eischen <eischen@vigrid.com>
1999-05-09 07:55:24 +00:00
John Birrell
33859c8093
Add mutex test program.
1999-05-09 07:50:31 +00:00
KATO Takenori
c4f748e7eb
Removed DRIVER_TYPE_TTY field.
1999-05-09 05:02:26 +00:00
Kazutaka YOKOTA
ab4918cbff
Reserve a major number for the frame buffer device.
1999-05-09 05:02:15 +00:00
KATO Takenori
f88efae58f
Sync with sys/isa/sio.c revision 1.234.
1999-05-09 05:00:54 +00:00
Kazutaka YOKOTA
194da42d48
Don't confuse cursor keys with numpad keys when composing a char code.
...
PR: kern/10988
1999-05-09 05:00:19 +00:00
Kazutaka YOKOTA
57600c2385
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
Kazutaka YOKOTA
d1a67a9435
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
Kazutaka YOKOTA
4e1cc0095d
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
Kazutaka YOKOTA
f64191e962
Added backward compatibility to set key repeat rate.
...
Requested by: bde
1999-05-09 04:57:51 +00:00
KATO Takenori
ac2e82dee1
Removed DRIVER_TYPE_TTY field.
1999-05-09 04:56:42 +00:00
KATO Takenori
ad4e5e0cfe
Sync with sys/isa/atkbd_isa.c revision 1.4.
1999-05-09 04:53:58 +00:00
KATO Takenori
2623b6551f
Sync with sys/i386/isa/wd.c revision 1.197.
1999-05-09 04:42:10 +00:00