Commit Graph

37790 Commits

Author SHA1 Message Date
peter
9e02d3d959 Missing revision markers. 1999-05-09 17:12:25 +00:00
peter
970b6faae9 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
97ba0251ca Turn on compat22 dist. 1999-05-09 17:00:04 +00:00
peter
477a786cd6 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
9a7989e43a Oops. If ROOTDEVNAME isn't defined, have -r call -a. 1999-05-09 16:56:09 +00:00
phk
b021a1a372 no longer used. 1999-05-09 16:46:38 +00:00
phk
799a620636 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
2ed052a3a1 Delete the #if'ed out old isa bus probe/attach routines 1999-05-09 16:39:24 +00:00
peter
0af8595729 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
70bd980b30 Fix a couple of warnings and some bitrot in comments. 1999-05-09 16:04:14 +00:00
peter
e2139583a6 Always use the module system, rather than in an #ifdef. 1999-05-09 15:57:52 +00:00
peter
010d2e3765 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
d8c1e82dbe More typos. 1999-05-09 13:46:31 +00:00
kris
ae87524e7f Typo.
Obtained from:	OpenBSD
1999-05-09 13:41:19 +00:00
peter
c2070b5bf5 Quiet a warning, put a #if 0 around some (I believe) unused static structs. 1999-05-09 13:21:06 +00:00
phk
ded327b946 major(something) can never become NODEV. 1999-05-09 13:13:52 +00:00
phk
4bd5be8a7f remove cast from dev_t to dev_t. 1999-05-09 13:11:37 +00:00
peter
57235f6f96 Move opt_sio.h options to conf/options and activate in isa/sio.c 1999-05-09 13:10:49 +00:00
phk
c667de5e40 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
174e43f8b6 Remove DDB. 1999-05-09 11:42:19 +00:00
dfr
4536a3279d 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
d12f14aa7e 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
515ba194d0 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
1896e54e06 Fix two warnings. 1999-05-09 10:45:54 +00:00
peter
5e3e8a72ad Fix warnings. 1999-05-09 10:43:54 +00:00
phk
1e2a3fc632 Yet a major/dev_t confusion
Spotted by Bruce.
1999-05-09 10:42:39 +00:00
phk
19aff8d571 siocngetc & putc can be staticized. 1999-05-09 10:28:50 +00:00
phk
24f0a67c11 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
43330220c9 fix some DRIVER_TYPE / INTR_TYPE confusions. 1999-05-09 09:56:52 +00:00
phk
f3df4266e8 Don't confuse dev_t and major numbers in DEV_MODULE() 1999-05-09 08:58:45 +00:00
phk
c46eed71be 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
db2bf4c554 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
f49813ac06 Duh, bdevsw() takes dev_t arg. 1999-05-09 07:56:36 +00:00
jb
0d7925ce92 Mutex test program.
Submitted by: Daniel Eischen <eischen@vigrid.com>
1999-05-09 07:55:24 +00:00
jb
a7fbc7e55e Add mutex test program. 1999-05-09 07:50:31 +00:00
kato
5590597b0b Removed DRIVER_TYPE_TTY field. 1999-05-09 05:02:26 +00:00
yokota
57a7cb6524 Reserve a major number for the frame buffer device. 1999-05-09 05:02:15 +00:00
kato
a2dfee47e0 Sync with sys/isa/sio.c revision 1.234. 1999-05-09 05:00:54 +00:00
yokota
0ee4030d92 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
fd01f3744d 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
2a1b3e3104 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
2cd17c5d4e 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
f4cd299602 Added backward compatibility to set key repeat rate.
Requested by: bde
1999-05-09 04:57:51 +00:00
kato
99d0f26df7 Removed DRIVER_TYPE_TTY field. 1999-05-09 04:56:42 +00:00
kato
1055c7adf2 Sync with sys/isa/atkbd_isa.c revision 1.4. 1999-05-09 04:53:58 +00:00
kato
077760caac Sync with sys/i386/isa/wd.c revision 1.197. 1999-05-09 04:42:10 +00:00
kato
a39c05f614 Sync with sys/i386/isa/pcausio.c revision 1.48. 1999-05-09 04:39:36 +00:00
kato
bb38daa56b Sync with sys/i386/isa/npx.c revision 1.61. 1999-05-09 04:38:27 +00:00
kato
c459512080 Sync with sys/i386/isa/mse.c revision 1.42. 1999-05-09 04:37:17 +00:00
kato
6a177e0469 Sync with sys/i386/isa/fd.c revision 1.142. 1999-05-09 04:34:28 +00:00