Commit Graph

1615 Commits

Author SHA1 Message Date
kato
30a54f9992 Synced with sys/i386/isa/mse.c, npx.c and spkr.c revisions 1.49, 1.80
and 1.45, respectively.

Approved by:	jkh
2000-02-01 08:54:14 +00:00
peter
c4b6cd7f5c Remove 'conflicts' token - it has been effectively doing absolutely
nothing for quite some time.  The only thing that cared was userconfig,
but it was for one invisible device so we never saw it's effects.
2000-01-29 18:07:07 +00:00
peter
59db460dbc Zap isa_device -> id_conflicts. The sole user of it (userconfig) never
actually used it since the only device that specified it (vga0) was marked
as "FLG_INVISIBLE" in userconfig and therefore never shown.

Suggested by:	bde
2000-01-29 18:01:10 +00:00
peter
53ed6e8650 Remove #if NFOO > 0 (it's not required in most cases) and also where it
isn't used as a result, remove #include "foo.h".  Many of these drivers
still use NFOO for softc struct sizing etc however.
2000-01-29 16:00:34 +00:00
kato
c28482a132 Synced with sys/isa/ppc.c rev 1.26. 2000-01-29 14:30:28 +00:00
kato
e5c332c2a2 Synced with sys/kern/subr_diskmbr.c rev 1.44. 2000-01-29 14:21:04 +00:00
kato
6f105adabe Synced with sys/kern/subr_diskmbr.c rev 1.43. 2000-01-29 14:00:58 +00:00
kato
64d8e9b9e5 Synced with sys/isa/ppc.c rev 1.25.
Reminded by:	nyan
2000-01-29 13:40:17 +00:00
kato
b86abe9ca2 Cosmetic changes.
- Fixed order of include files.
 - Fixed white spaces.
2000-01-29 07:36:46 +00:00
kato
debd5713de Synced with sys/isa/sio.c rev 1.287. 2000-01-29 04:47:22 +00:00
kato
9af864f09a Synced with sys/i386/isa/wd.c rev 1.218. 2000-01-29 04:42:49 +00:00
kato
8d31907972 Merged with sys/i386/conf/GENERIC rev 1.238. 2000-01-28 07:15:23 +00:00
nyan
a6ded040ef Merge from sys/i386/conf/GENERIC revision 1.231, 1.232 and 1.235. 2000-01-28 01:07:48 +00:00
kato
8e057fffb8 Synced with sys/i386/isa/isa_compat.h and pcaudio.c revisions 1.26 and
1.58, respectively.
2000-01-26 11:23:51 +00:00
kato
c5a78336fe Synced with sys/i386/isa/npx.c rev 1.79. 2000-01-26 11:16:14 +00:00
peter
0053820449 Copy i386/isa/atapi-cd.[ch] to a new name so that it doesn't have the
same object file (atapi-cd.o) as the ata drivers. I'd have called it
wcd.[ch], but there's already one of those in the Attic that we can't
clobber - the good names are taken.
Fix building so that it can be compiled into LINT alongside ata.

Requested by:	bde
2000-01-24 17:16:03 +00:00
kato
d2024f75c9 Merged from sys/i386/conf/GENERIC rev 1.236. 2000-01-24 14:02:34 +00:00
kato
7898f6d9d6 Synced with sys/i386/isa/isa_compat.h rev 1.25. 2000-01-24 13:58:18 +00:00
peter
16f4eb83c1 Remove some no-op "port ?" and "irq ?" declarations. 2000-01-24 08:52:29 +00:00
kato
782470b16b Return ENXIO on error.
Submitted by:	n_hibma
2000-01-24 08:20:54 +00:00
peter
dbf4e19087 Drop 'at ppbus?' and trailing '0' from ppbus children. 2000-01-23 14:47:58 +00:00
peter
7028fa1315 Remove useless trailing digit from pci and other unwired devices. 2000-01-23 12:20:09 +00:00
peter
38391cb38a Clean up some more loose ends..
isa_device->id_ri_flags and RI_FAST were not implemented and did nothing.
The two drivers that were mistakenly thinking this was working were
cy.c and loran.c - these should be converted to newbus.
GC (garbage collect) isa_device->id_alive
GC userconfig.c references to isa_device->id_scsiid (!).
2000-01-23 11:50:43 +00:00
peter
e8782df8c9 GC isa_device->id_reconfig - it's not referenced anywhere anymore.
GC reconfig_isadev() - it's not used anymore.
2000-01-23 11:26:49 +00:00
nyan
9d2bd66eba - Merge from sys/i386/conf/GENERIC rev 1.224, 1.225 and 1.226.
- Reorder network interfaces.
2000-01-21 13:22:07 +00:00
kato
e65ad563e9 Synced with the sc driver in the sys/dev/syscons directory.
Submitted by:	yokota
2000-01-20 15:16:49 +00:00
nyan
8732157b07 Fixed typo. 2000-01-20 12:37:06 +00:00
kato
b149cc0a07 Synced with sys/isa/sio.c rev 1.285. 2000-01-20 08:37:54 +00:00
kato
40c8b7d407 Synced with sys/i386/i386/userconfig.c rev 1.169. 2000-01-20 08:35:32 +00:00
kato
b8cfd16cdf Synced with sys/i386/conf/GENERIC rev 1.230. 2000-01-20 08:34:40 +00:00
kato
f9060bc85d Port of the PC-98 ppc to the newbus system. 2000-01-20 00:58:49 +00:00
kato
201865e21a Synced with sys/i386/isa/isa_compat.h rev 1.24. 2000-01-14 13:10:22 +00:00
kato
fd71cfb854 Synced with sys/i386/i386/userconfig.c rev 1.168. 2000-01-14 13:07:16 +00:00
kato
61386af7c7 Synced with sys/i386/conf/GENERIC rev 1.228. 2000-01-14 13:05:33 +00:00
kato
2809dee713 Synced with sys/dev/syscons/syscons.c rev 1.331. 2000-01-13 12:24:43 +00:00
kato
178aa32669 Synced with following changes:
>yokota      2000/01/11 05:39:06 PST
>
>  Modified files:
>    sys/dev/usb          ukbd.c
>    sys/dev/kbd          atkbd.c kbd.c kbdreg.h
>  Log:
>  Rework shifta/ctla/alta key handling.  It appears that there was
>  misunderstanding between the PR originator and me.  I hope I got it
>  right this time.
>
>  Revision  Changes    Path
>  1.22      +4 -1      src/sys/dev/usb/ukbd.c
>  1.21      +1 -8      src/sys/dev/kbd/atkbd.c
>  1.16      +19 -10    src/sys/dev/kbd/kbd.c
>  1.9       +2 -2      src/sys/dev/kbd/kbdreg.h

Submitted by:	yokota
2000-01-13 11:47:42 +00:00
kato
e6878332fc Synced with sys/isa/sio.c rev 1.284. 2000-01-13 11:45:33 +00:00
peter
e826bee2b9 Put on my asbestos suit and move $mach/conf/*.$mach to conf/*.$mach as
hinted at in the previous config(8) commits.  I've spoken about this with
a few people and after the initial suprise wore off they thought it wasn't
a bad idea.  The upshot of it is that all the files*, Makefile*, options*
files are all right next to each other in the hope that people making
changes to one set will remember the others.

Note, config(8) looks to sys/conf first, and falls back to sys/$mach/conf
still, so this doesn't stop people working in subdirs for new platforms.
But once it's in the tree it can be moved next to the other files so that
the non-i386 platforms are (hopefully) treated a little better than as if
they were "second class" ports.

This does not change any user editable files.  the config program is
still run in the same directory as before, the per-platform files
(GENERIC, LINT etc) are still in the same place.
2000-01-09 15:29:10 +00:00
kato
a2fa742c8f Synced with sys/i386/conf/files.i386 rev 1.295. 2000-01-09 14:25:50 +00:00
kato
1a5985fb4a Synced with sys/i386/conf/Makefile.i386 rev 1.176. 2000-01-09 14:24:00 +00:00
bde
9bf47018d7 Put COMPAT_SVR4 in opt_dontuse.h for the same reasons as IBCS2 and
COMPAT_LINUX are there.  It shouldn't be and isn't used after config
time, except to complicate the svr4 module makefile.

Moved options for emulators to a separate section.
2000-01-09 10:58:39 +00:00
nyan
59e22203a1 Merge from sys/isa/fd.c revision from 1.171 to 1.176 and sys/isa/fdreg.h
revision 1.13.

Forgotten by:	kato
2000-01-09 10:01:21 +00:00
peter
3dc75ce0ff Bump configversion. The controller/device changes are upwards but not
downwards compatable.  If you try and config a s/controller/device/ kernel
with an old config(8), the results will be less than satisfactory.
2000-01-09 07:10:27 +00:00
peter
009569746f s/controller/device/ as per config(8) changes 2000-01-08 16:07:11 +00:00
bde
56c26012ce Compile genassym.c with ordinary ${CFLAGS}. The (small) needs for
${GEN_CFLAGS} and -U_KERNEL became negative when all all the
genassym.c's were converted to be cross-built.

Makefile.*:
- Cleanups associated with the old genassym.
- Fixed deprecated spelling of ${.IMPSRC} as "$<".
2000-01-08 15:52:22 +00:00
marcel
5bcc2e4ffe Use genassym(1). The definitions of NKPDE and NKPT have been removed
because they are already defined in pmap.h, resulting in duplicate
definitions.

Reviewed by: bde
2000-01-07 11:50:46 +00:00
kato
19a55adf4b Synced with sys/i386/isa/clock.c rev 1.149. 2000-01-05 12:35:03 +00:00
kato
841bcf0630 Synced with sys/i386/i386/userconfig.c rev 1.166. 2000-01-05 12:34:10 +00:00
kato
8334fd9e82 Synced with sys/i386/conf/GENERIC rev 1.222. 2000-01-05 12:33:10 +00:00
wpaul
a0156fbe84 Add device driver support for USB ethernet adapters based on the
Kawasaki LSI KL5KUSB101B chip, including the LinkSys USB10T, the
Entrega NET-USB-E45, the Peracom USB Ethernet Adapter, the 3Com
3c19250 and the ADS Technologies USB-10BT. This device is 10mbs
half-duplex only, so there's miibus or ifmedia support. This device
also requires firmware to be loaded into it, however KLSI allows
redistribution of the firmware images (I specifically asked about
this; they said it was ok).

Special thanks to Annelise Anderson for getting me in touch with
KLSI (eventually) and thanks to KLSI for providing the necessary
programming info.

Highlights:
- Add driver files to /sys/dev/usb
- update usbdevs and regenerate attendate files
- update usb_quirks.c
- Update HARDWARE.TXT and RELNOTES.TXT for i386 and alpha
- Update LINT, GENERIC and others for i386, alpha and pc98
- Add man page
- Add module
- Update sysinstall and userconfig.c
2000-01-05 04:27:24 +00:00
nyan
f47c71d76e - Fixed warnings.
- Removed unnecessary include files.
2000-01-04 04:46:50 +00:00
nyan
d535c0de38 - Add commented out USB driver entries.
- Reorder network interfaces.
2000-01-03 07:12:56 +00:00
kato
06ea27b195 Synced with sys/i386/i386/userconfig.c rev 1.165. 2000-01-03 05:37:01 +00:00
kato
030af57b1e Synced with sys/i386/conf/GENERIC rev 1.220. 2000-01-03 05:35:56 +00:00
kato
d71c32fbf8 Synced with sys/i386/conf/Makefile.i386 rev 1.170. 2000-01-03 05:34:48 +00:00
peter
d53e4c1d80 Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
1999-12-29 05:07:58 +00:00
peter
15b9bcb121 Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
1999-12-29 04:46:21 +00:00
kato
3ee84d162b Synced with sys/isa/sio.c rev 1.282. 1999-12-27 14:01:06 +00:00
kato
898aba9f29 Synced with sys/i386/isa/clock.c rev 1.148. This is a cosmetic change
because PC-98 doesn't have RTC and RTC related code is included by
`#ifndef PC98' and `#endif'.
1999-12-27 13:56:54 +00:00
kato
3726c476f2 Synced with sys/i386/conf/Makefile.i386 rev 1.169. 1999-12-27 13:53:43 +00:00
kato
1985d330ca Oops, deactivate ed drivers because of undefiend references from
if_ed_pci.o.
1999-12-26 05:26:43 +00:00
kato
d254362c33 Added Allied Telesis SIU-98-D support.
Submitted by:	Isizu Takaaki <isizu-t01@aso-group.co.jp>
		chi@bd.mbn.or.jp (Chiharu Shibata)
		(w/ minor change by kato)
1999-12-26 05:10:14 +00:00
kato
c16ace94c4 - Cut down amount of memory in 64MB when BIOS tells the amount of
memory >= 64MB.
- Don't perform destructive memory inspection for 15 - 16MB system
  area.

Submitted by:	NOKUBI Hirotaka <hnokubi@yyy.or.jp>
		chi@bd.mbn.or.jp (Chiharu Shibata)
1999-12-26 04:22:27 +00:00
kato
0e510da6bf Merge from sys/i386/conf/files.i386 rev 1.293. 1999-12-24 11:20:14 +00:00
kato
67534f1dc5 Merge from sys/i386/conf/GENERIC rev 1.218 & 1.219. 1999-12-24 11:12:43 +00:00
kato
3575f36c29 Removed -mno-486 from CFLAGS. 1999-12-24 11:09:40 +00:00
imp
d6ca130daf sn driver is no longer using isa_compat layer 1999-12-22 09:40:35 +00:00
peter
de7c062727 Only compile gusc for isa (the #if NISA inside gusc effectively covers
the whole file)
1999-12-21 13:53:49 +00:00
peter
6a8d636f67 merge i386/isa/clock.c 1.147: don't talk about register_intr in comments. 1999-12-20 15:24:56 +00:00
kato
b4682bef65 Removed unnecessary include file. 1999-12-20 13:36:32 +00:00
kato
58d24b5adb Sync with sys/i386/conf/options.i386 rev 1.130. 1999-12-20 11:00:02 +00:00
kato
1a21fd2d93 Sync with sys/i386/conf/files.i386 rev 1.291. 1999-12-20 10:58:54 +00:00
kato
72f023c996 Sync with sys/i386/conf/Makefile.i386 rev 1.167. 1999-12-20 10:55:49 +00:00
kato
bf5c8ae66b Sync with sys/i386/conf/GENERIC rev 1.217. 1999-12-20 10:53:49 +00:00
imp
b4e3577a75 Driver for the smc91xx series of ethernet chips. Ported from PAO to
3.3R and then to -current.  The pccard support has been left in the
driver, but is presently non-functional because we are using the
isa_compat layer for the moment.

Obtained From: PAO
Sponsored by: Timing Solutions
1999-12-18 06:11:22 +00:00
hm
529bc073c0 update to isdn4bsd beta release 0.90: since the isic drivers are now
new-busified, remove all isic traces from compatibility mode wrapper
Noticed by: Warner Losh
1999-12-15 20:14:22 +00:00
kato
40c6d62f53 Merge from sys/i386/conf/files.i386 rev 1.289.
Submitted by:	yokota
1999-12-13 14:57:51 +00:00
kato
51419295b1 Merge from sys/dev/kbd/kbd.c rev 1.13.
Submitted by:	yokota
1999-12-13 13:19:38 +00:00
kato
1c5a064ff1 Merge from sys/dev/syscons/syscons.c rev 1.330. 1999-12-13 13:17:24 +00:00
kato
b938f347b6 Merge from sys/i386/conf/Makefile.i386 rev 1.166. 1999-12-13 13:15:32 +00:00
kato
8a0df4733e Merge from sys/isa/sio.c rev 1.279. 1999-12-10 14:03:47 +00:00
kato
453f0dd907 Remove ze and zp drivers. 1999-12-10 14:02:48 +00:00
kato
62b7324cc5 Merge from sys/dev/syscons/syscons.c rev 1.329. 1999-12-10 13:55:47 +00:00
phk
600b6d43b7 Remove the B_BAD buffer flag, it is no longer used. 1999-12-10 09:40:29 +00:00
archie
c6d289b2ad Move source files common to all platforms from <arch>/conf/files.<arch>
to conf/files.  If/when these files are optimized for each platform,
they can be moved back.
1999-12-09 19:38:20 +00:00
dan
35f9357164 arc4random.c now in conf/files (left out of last commit.. oops!) 1999-12-09 19:23:10 +00:00
kato
551bc1986a Backed out previous commit because it contains wrong changes.
Pointed out by:	nyan
1999-12-09 14:54:02 +00:00
kato
7fe95b26a2 Sync with sys/dev/fb/vga.c rev 1.5.
Submitted by:	yokota
1999-12-09 12:32:50 +00:00
kato
5cec9086b0 Sync with sys/i386/isa/wd.c rev 1.216. 1999-12-09 12:30:32 +00:00
kato
123ed1d90a Merge from sys/i386/conf/options.i386 rev 1.128. 1999-12-09 12:16:29 +00:00
kato
a59ac25812 Merge from sys/i386/conf/files.i386 rev 1.284. 1999-12-09 12:14:35 +00:00
phk
551bfa2f51 Remove BAD144 support, it has already been disabled for some time. 1999-12-08 09:33:00 +00:00
ken
235e74ef14 Revamp the devstat priority system. All disks now have the same priority.
The same goes for CD drivers and tape drivers.  In systems with mixed IDE
and SCSI, devices in the same priority class will be sorted in attach
order.

Also, the 'CCD' priority is now the 'ARRAY' priority, and a number of
drivers have been modified to use that priority.

This includes the necessary changes to all drivers, except the ATA drivers.
Soren will modify those separately.

This does not include and does not require any change in the devstat
version number, since no known userland applications use the priority
enumerations.

Reviewed by:	msmith, sos, phk, jlemon, mjacob, bde
1999-12-08 04:45:23 +00:00
kato
d29133dba7 Merge from sys/isa/fd.c rev 1.170. 1999-12-07 09:32:59 +00:00
kato
bd54a04707 Merge from sys/isa/sio.c rev 1.277 & 1.278. 1999-12-07 09:29:15 +00:00
kato
364a3fed40 Merge from sys/i386/conf/files.i386 rev 1.283. 1999-12-07 09:23:44 +00:00
kato
bae320cefa Merge from sys/dev/syscons/syscons.c rev 1.328. 1999-12-07 09:21:19 +00:00
kato
07c05f3a8f Merge from sys/i386/i386/userconfig.c rev 1.162 & 1.163. 1999-12-07 09:16:52 +00:00
peter
57d9179ee8 Merge pnp change from i386/conf/GENERIC (rev 1.211) 1999-12-06 18:20:31 +00:00
phk
c9bb249812 Remove DSO_BAD144 from wd driver(s) so people with bad144'ed disks get
a bit of warning.
1999-12-06 10:19:03 +00:00
luoqi
5c9244cd12 User ldt sharing. 1999-12-06 04:53:08 +00:00
wpaul
661f325745 Remove joystick references from pc98 version of isa_compat.h too. 1999-12-06 00:58:14 +00:00
nyan
e4171de86a Supported i8251 (internal COM1) FIFO mode.
Submitted by:	tanimura and nyan
1999-12-06 00:23:38 +00:00
wpaul
ed3c05deaf Update to reflect removed of al, ax, dm, pn and mx drivers and addition
of dc driver.
1999-12-05 21:11:05 +00:00
nyan
4740a52e25 Sync with sys/i386/i386/machdep.c revision up to 1.381. 1999-12-04 12:35:05 +00:00
nyan
a9faa48e79 pc98/pc98/atapi.c
Copied from i386/isa/atapi.c.
	Fixed to support slave devices.
	Ignore the device that has strange model strings.

i386/isa/atapi.c
	Removed pc98 codes.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1999-12-03 12:56:21 +00:00
nyan
2dd50715c1 Sync with sys/i386/conf/GENERIC revision 1.208. 1999-12-03 11:40:52 +00:00
mdodd
87e31f4b90 Remove the 'ivars' arguement to device_add_child() and
device_add_child_ordered().  'ivars' may now be set using the
device_set_ivars() function.

This makes it easier for us to change how arbitrary data structures are
associated with a device_t.  Eventually we won't be modifying device_t
to add additional pointers for ivars, softc data etc.

Despite my best efforts I've probably forgotten something so let me know
if this breaks anything.  I've been running with this change for months
and its been quite involved actually isolating all the changes from
the rest of the local changes in my tree.

Reviewed by:	peter, dfr
1999-12-03 08:41:24 +00:00
nyan
8eb4b40d98 Sync with sys/i386/conf/GENERIC revision up to 1.207. 1999-12-02 14:00:28 +00:00
nyan
6a6837052c Sync with sys/isa/sio.c revision 1.276. 1999-12-01 13:40:03 +00:00
nyan
63142e68cd - Fixed to support RSB-384/2000/3000.
- Fixed warnings.
1999-11-29 13:20:47 +00:00
nyan
8ebdea82c7 Sync with sys/i386/conf/files.i386 revision 1.282. 1999-11-29 12:26:30 +00:00
nyan
38cffb40f9 Sync with sys/dev/syscons/syscons.c revision 1.327. 1999-11-28 08:57:22 +00:00
nyan
35f2e5452d Sync with sys/i386/conf/GENERIC revision 1.205. 1999-11-28 08:55:01 +00:00
nyan
6661b59c9e Sync with sys/i386/conf/GENERIC revision 1.202. 1999-11-27 11:41:46 +00:00
nyan
3d02295353 Sync with sys/i386/conf/files.i386 revision 1.281. 1999-11-26 11:47:01 +00:00
nyan
62276be7fd Fixed to support IBM-PC HDD.
- Use 'or' operation to change b_flags.
    - SCSI HDD device is 'da', not 'sd'.

Submitted by:	kura@tim.hi-ho.ne.jp (Tomohiko Kurahashi) and
		chi@bd.mbn.or.jp (Chiharu Shibata)
1999-11-25 13:37:42 +00:00
nyan
d859c774ca Sync with sys/i386/conf/Makefile.i386 revision 1.165. 1999-11-25 12:52:13 +00:00
nyan
429e777df8 Sync with sys/i386/i386/machdep.c revision up to 1.378. 1999-11-25 12:43:07 +00:00
archie
d6eae9ff98 Change the prototype of the strto* routines to make the second
parameter a char ** instead of a const char **.  This make these
kernel routines consistent with the corresponding libc userland
routines.

Which is actually 'correct' is debatable, but consistency and
following the spec was deemed more important in this case.

Reviewed by (in concept):	phk, bde
1999-11-24 01:03:08 +00:00
phk
d19d6e6b45 s/p_cred->pc_ucred/p_ucred/g 1999-11-21 12:38:21 +00:00
nyan
13ac592779 Sync with sys/isa/sio.c revision up to 1.275. 1999-11-18 12:22:09 +00:00
nyan
34a943f35a Sync with sys/isa/fd.c revision 1.168. 1999-11-18 11:34:26 +00:00
nyan
e9ddf50503 Sync with sys/i386/conf/Makefile.i386 revision up to 1.163. 1999-11-18 11:26:45 +00:00
nyan
dd5693237d Sync with sys/i386/isa/pcaudio.c revision 1.57. 1999-11-16 12:21:14 +00:00
nyan
a789052c06 Fixed the size of array. 1999-11-13 14:09:08 +00:00
nyan
f28a6e0fa2 Fixed missing changes from sys/i386/conf/GENERIC. 1999-11-13 14:04:49 +00:00
nyan
03fa63a541 Sync with sys/i386/i386/machdep.c revision 1.375. 1999-11-12 12:00:35 +00:00
nyan
f83d85f900 Sync with sys/isa/fd.c revision 1.167. 1999-11-11 12:15:15 +00:00
nyan
6ed78701c7 - Commented out ed driver.
- Added sis driver.
1999-11-09 12:20:34 +00:00
nyan
90c3762347 Sync with sys/i386/conf/options.i386 revision up to 1.127. 1999-11-09 12:16:01 +00:00
peter
a323a1a83c Use cdevsw_add() until the rest of the devices are created with make_dev()
and change from DEV_DRIVER_MODULE() to DRIVER_MODULE().
1999-11-08 07:46:28 +00:00
eivind
5b687accc4 Options cleanup.
* GC unused options
* Move options that exist on all architectures to conf/options
* Add missing options to LINT
* Sort undocumented options list in LINT

Reviewed by:	green
1999-11-06 23:41:10 +00:00
nyan
d3b5b37927 Sync with sys/i386/isa/spkr.c revision 1.44. 1999-11-04 11:20:46 +00:00
nyan
e6e04fd013 Cosmetic changes. 1999-11-03 10:08:15 +00:00
nyan
35858ecbf7 Support RSA-98III PnP mode. 1999-11-03 09:13:16 +00:00
nyan
95cb80cbf8 Sync with sys/isa/sio.c revision from 1.269 to 1.273. 1999-11-03 09:02:23 +00:00
nyan
8ffdd77380 Remove unnecessary file. 1999-11-03 08:45:16 +00:00
nyan
54e335c704 Sync with sys/i386/conf/GENERIC revision 1.199. 1999-11-03 08:43:11 +00:00
nyan
b95da9010f Sync with sys/i386/isa/clock.c revision 1.146. 1999-11-03 08:36:17 +00:00
nyan
8b1b01b07c Sync with sys/i386/i386/machdep.c revision 1.371. 1999-11-03 08:25:40 +00:00
nyan
40827ed058 Sync with sys/dev/syscons/syscons.c revision 1.326. 1999-11-03 08:19:35 +00:00
archie
379a856804 Consolidate some of the various ctype(3) macros in one location. 1999-11-02 22:50:34 +00:00
phk
6208a5013f Remove two private copies of strtoul()
Spotted by:	bde
1999-11-02 09:34:09 +00:00
eivind
b38bca6cdc Elminiate the (unused) TUNE_1542 option. 1999-11-01 22:50:52 +00:00
alc
61bba49fd7 The useracc() calls in osigreturn() and sigreturn() should specify
VM_PROT_READ rather than VM_PROT_WRITE.  (This mistake predates
the B_READ/B_WRITE -> VM_PROT_READ/VM_PROT_WRITE change.)

Submitted by:	bde
1999-10-31 19:39:51 +00:00
nyan
8a99813670 - Sync with sys/i386/isa/if_ed.c revision 1.163.
- Supported Networld EC/EP-98X.
- Rewrite NE2000 PCMCIA (LPC-T) on old 98Note.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1999-10-31 08:24:18 +00:00
marcel
4a66bff37d Allow the source root `S' to be overridden by defining it only when
it isn't already defined. It enables config(8) to create the kernel
build directory where it wants.
1999-10-30 09:28:27 +00:00
phk
8d8f53dcdc Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the
"rw" argument, rather than hijacking B_{READ|WRITE}.

Fix two bugs (physio & cam) resulting by the confusion caused by this.

Submitted by:   Tor.Egge@fast.no
Reviewed by:    alc, ken (partly)
1999-10-30 06:32:05 +00:00
phk
8e3c3eafed useracc() the prequel:
Merge the contents (less some trivial bordering the silly comments)
of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>.  This puts
the #defines for the vm_inherit_t and vm_prot_t types next to their
typedefs.

This paves the road for the commit to follow shortly: change
useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE}
as argument.
1999-10-29 18:09:36 +00:00
mdodd
6c9de8a308 Sync with recent 'ep' driver changes. 1999-10-27 21:47:56 +00:00
nyan
834ffc78b6 Fix potential panic by illegal increment of wfdnlun.
Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
Reviewed by:	Junichi Satoh <junichi@astec.co.jp> (the original author)
1999-10-27 12:40:20 +00:00
nyan
0e060fbfb1 Fixed to compile a kernel with scbus0 and without da0.
Added $FreeBSD$.

Submitted by:   chi@bd.mbn.or.jp (Chiharu Shibata)
1999-10-24 14:54:12 +00:00
kato
937429858c Sync w/ sys/i386/isa/isa_compat.h revision 1.16. 1999-10-16 13:14:59 +00:00
kato
e399d41d54 Sync w/ sys/i386/conf/options.i386 revision 1.122. 1999-10-16 13:13:00 +00:00
kato
8c805db603 Merge form sys/i386/conf/GENERIC revision 1.195. 1999-10-16 13:11:49 +00:00
kato
91e46e056d Sync with sys/i386/isa/pcaudio.c revision 1.55. 1999-10-13 11:07:16 +00:00
kato
01c797eb22 Sync with sys/i386/isa/mse.c revision 1.48. 1999-10-13 11:06:14 +00:00
kato
a165d9295b Sync with sys/i386/i386/machdep.c revision 1.370. 1999-10-13 11:03:41 +00:00
kato
f788cfce4b Sync with sys/i386/conf/majors.i386 revision 1.87. 1999-10-13 11:01:15 +00:00
kato
a64386cbbf Sync with sys/i386/conf/files.i386 revision 1.277. 1999-10-13 11:00:27 +00:00
kato
1c220fd9d8 Sync with sys/i386/conf/Makefile.i386 revision 1.160. 1999-10-13 10:59:23 +00:00
dfr
229cdb9144 * Add struct resource_list* argument to resource_list_alloc and
resource_list_release. This removes the dependancy on the
  layout of ivars.

* Move set_resource, get_resource and delete_resource from
  isa_if.m to bus_if.m.

* Simplify driver code by providing wrappers to those methods:

     bus_set_resource(dev, type, rid, start, count);
     bus_get_resource(dev, type, rid, startp, countp);
     bus_get_resource_start(dev, type, rid);
     bus_get_resource_count(dev, type, rid);
     bus_delete_resource(dev, type, rid);

* Delete isa_get_rsrc and use bus_get_resource_start instead.

* Fix a stupid typo in isa_alloc_resource reported by Takahashi
  Yoshihiro <nyan@FreeBSD.org>.

* Print a diagnostic message if we can't assign resources to a PnP
  device.

* Change device_print_prettyname() so that it doesn't print
  "(no driver assigned)-1" for anonymous devices.
1999-10-12 21:35:51 +00:00
nyan
50fa6f3da8 Initialize tp->t_stop to nottystop. 1999-10-12 13:16:48 +00:00
luoqi
fd8b4427a5 Add a per-signal flag to mark handlers registered with osigaction, so we
can provide the correct context to each signal handler.

Fix broken sigsuspend(): don't use p_oldsigmask as a flag, use SAS_OLDMASK
as we did before the linuxthreads support merge (submitted by bde).

Move ps_sigstk from to p_sigacts to the main proc structure since signal
stack should not be shared among threads.

Move SAS_OLDMASK and SAS_ALTSTACK flags from sigacts::ps_flags to proc::p_flag.
Move PS_NOCLDSTOP and PS_NOCLDWAIT flags from proc::p_flag to procsig::ps_flag.

Reviewed by:	marcel, jdp, bde
1999-10-11 20:33:17 +00:00
marcel
8366d8e9d7 Synchronize with i386 rev 1.367 1999-10-08 09:20:56 +00:00
peter
d2c2fe62f0 Zap these defucnt files before anyone things about trying to merge them. 1999-10-08 06:21:38 +00:00
marcel
05e89da65f Re-introduction of sigcontext.
struct sigcontext and ucontext_t/mcontext_t are defined in such
a way that both (ie struct sigcontext and ucontext_t) can be
passed on to sigreturn. The signal handler is still given a
ucontext_t for maximum flexibility.

For backward compatibility sigreturn restores the state for the
alternate signal stack from sigcontext.sc_onstack and not from
ucontext_t.uc_stack. A good way to determine which value the
application has set and thus which value to use, is still open
for discussion.

NOTE: This change should only affect those binaries that use
      sigcontext and/or ucontext_t. In the source tree itself
      this is only doscmd. Recompilation is required for those
      applications.

This commit also fixes a lot of style bugs without hopefully
adding new ones.

NOTE: struct sigaltstack.ss_size now has type size_t again. For
      some reason I changed that into unsigned int.

Parts submitted by: bde
sigaltstack bug found by: bde
1999-10-04 19:33:58 +00:00
phk
65f7b2e95b Remove unused B_FORMAT #define 1999-10-04 07:40:23 +00:00
kato
76379b8261 Sync w/ sys/i386/i386/machdep.c revision 1.364. 1999-10-01 12:46:08 +00:00
kato
10ba647804 Sync w/ sys/i386/conf/files.i386 revision 1.275. 1999-10-01 12:29:49 +00:00
marcel
a16d76cb56 sigset_t change (part 3 of 5)
-----------------------------

By introducing a new sigframe so that the signal handler operates
on the new siginfo_t and on ucontext_t instead of sigcontext, we
now need two version of sendsig and sigreturn.

A flag in struct proc determines whether the process expects an
old sigframe or a new sigframe. The signal trampoline handles
which sigreturn to call. It does this by testing for a magic
cookie in the frame.

The alpha uses osigreturn to implement longjmp. This means that
osigreturn is not only used for compatibility with existing
binaries. To handle the new sigset_t, setjmp saves it in
sc_reserved (see NOTE).

the struct sigframe has been moved from frame.h to sigframe.h
to handle the complex header dependencies that was caused by
the new sigframe.

NOTE: For the i386, the size of jmp_buf has been increased to hold
      the new sigset_t. On the alpha this has been prevented by
      using sc_reserved in sigcontext.
1999-09-29 15:06:27 +00:00
phk
5e9f92ecf7 Introduce ttyread() and ttywrite() which do the canonical thing.
Use them in many tty drivers.

Reviewed by: julian, bde
1999-09-28 11:45:31 +00:00
kato
54071ce792 Sync w/ sys/i386/isa/pcaudio.c revision 1.54. 1999-09-28 08:19:53 +00:00
kato
b890e4e89d Removed aha driver. 1999-09-28 08:16:37 +00:00
kato
b00a7b2457 Sync w/ sys/i386/conf/files.i386 revision 1.274. 1999-09-28 08:07:42 +00:00
kato
cfa4d8f19b ed driver re-activated. 1999-09-27 03:39:15 +00:00
kato
492315a247 Make ed driver work again.
isa_compat.c
  Copied from sys/i386/isa/isa_compat.c.  It includes
  sys/pc98/pc98/isa_compat.h instead of sys/i386/isa/isa_compat.h.

isa_compat.h
  Copied from sys/i386/isa/isa_compat.c.  The ed driver is registered
  in this file until pc98's ed driver is converted into new-bus style.

files.pc98
  Use sys/pc98/pc98/isa_compat.c instead of sys/i386/isa/isa_compat.c.

if_ed.c
  - Fixed the location of the include file.
  - Disalbed pnp support.
1999-09-27 03:35:41 +00:00
nyan
aa607b12e7 Merge from sys/isa/fd.c revision 1.146, 1.153, 1.154 and 1.159. 1999-09-27 03:32:31 +00:00
nyan
07038f1e99 Merge from sys/i386/isa/spkr.c revision 1.37 and 1.39. 1999-09-26 03:24:37 +00:00
nyan
4dd63577df Merge from sys/i386/isa/pcaudio.c revision 1.50. 1999-09-26 03:22:34 +00:00
nyan
e5d7fddaba Merge from sys/i386/isa/mse.c revision 1.44. 1999-09-26 03:21:38 +00:00
phk
e9e0512210 Remove five now unused fields from struct cdevsw. They should never
have been there in the first place.  A GENERIC kernel shrinks almost 1k.

Add a slightly different safetybelt under nostop for tty drivers.

Add some missing FreeBSD tags
1999-09-25 18:24:47 +00:00
phk
a2c68c62db This patch clears the way for removing a number of tty related
fields in struct cdevsw:

        d_stop          moved to struct tty.
        d_reset         already unused.
        d_devtotty      linkage now provided by dev_t->si_tty.

These fields will be removed from struct cdevsw together with
d_params and d_maxio Real Soon Now.

The changes in this patch consist of:

        initialize dev->si_tty in *_open()
        initialize tty->t_stop
        remove devtotty functions
        rename ttpoll to ttypoll
        a few adjustments to these changes in the generic code
        a bump of __FreeBSD_version
        add a couple of FreeBSD tags
1999-09-25 16:21:39 +00:00
nyan
77e9ca374d Remove unnecessary file. This file is obsolete by newbus integration. 1999-09-25 14:17:05 +00:00
phk
d612df1de6 Remove NBPF conditionality of bpf calls in most of our network drivers.
This means that we will not have to have a bpf and a non-bpf version
of our driver modules.

This does not open any security hole, because the bpf core isn't loadable

The drivers left unchanged are the "cross platform" drivers where the respective
maintainers are urged to DTRT, whatever that may be.

Add a couple of missing FreeBSD tags.
1999-09-25 12:06:01 +00:00
nyan
6da1282107 Merge from sys/i386/conf/files.i386 revision 1.270 and 1.271. 1999-09-25 05:39:19 +00:00
nyan
8e881fe493 - Supported 1.23MB FD again.
- Supported all formats that IBM-PC's driver (isa/fd.c) supports.
- Changed the device minor numbers. They sync in IBM-PC's driver.
1999-09-23 14:21:14 +00:00
kato
e789a63b40 Fixed the bug that the number of sectors per cylinder was stored into
the ncyls (number of cylinders) in dsinit().

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1999-09-23 04:09:01 +00:00
kato
407115b4db Sync with sys/dev/syscons/syscons.c revision 1.322. 1999-09-23 03:37:40 +00:00
kato
f747ad7143 Sync with sys/i386/isa/npx.c revision 1.78. 1999-09-22 12:01:36 +00:00
kato
fa4d7c538e Sync with sys/i386/i386/userconfig.c revision 1.159. 1999-09-22 11:59:14 +00:00
kato
5f9dca84ab Sync with sys/i386/conf/majors.i386 revision 1.86. 1999-09-22 11:58:11 +00:00
kato
b69543c4a0 Added mp_clock.c. 1999-09-22 11:57:12 +00:00
kato
b2ca6ab0bf Commented out ed driver. 1999-09-22 11:55:25 +00:00
kato
35e8f6ea97 Sync with sys/i386/conf/GENERIC revision 1.192. 1999-09-22 11:54:03 +00:00
phk
b2a7a63df7 Set si_iosize_max rather than d_maxio.
Register devsw in *attach instead of a SYSINIT.
1999-09-20 19:58:38 +00:00
phk
9099b1bf20 Add a DSO_BAD144 flag which indicates that the driver actually understand
BAD144 handling.

Reject DIOCSBAD and labels with BAD144 tables if the driver cannot grok it.

Reviewed by:    bde
1999-09-20 17:04:39 +00:00
phk
b547f6c567 Two more devstat_end_transaction() -> devstat_end_transaction_buf(). 1999-09-19 12:43:34 +00:00
phk
a41657c540 Use devstat_end_transaction_buf() rather than Use devstat_end_transaction() 1999-09-18 21:30:27 +00:00
nyan
5a8588bae9 Gdc and pckbd driver don't support pnp mode. 1999-09-14 12:57:40 +00:00
bde
d01e107d02 Removed diskerr()'s unused d_name arg and updated callers. This fixes
warnings caused by the arg having the wrong type (not const enough).
The arg was also wrong (a full name instead of a short one) for calls
from from subr_diskmbr.c and pc98/diskslice_machdep.c.
1999-09-13 12:59:41 +00:00
kato
3edadb57c6 Merge from sys/i386/conf/GENERIC revision 1.190. 1999-09-13 08:55:15 +00:00
nyan
c5bcb23f60 Fixed missing changes from sys/isa/sio.c. 1999-09-12 13:44:54 +00:00
nyan
08e7f2048e Merge missing changes from sys/i386/conf/files.i386. 1999-09-12 12:32:49 +00:00
julian
5c78e7345a Changes to centralise the default blocksize behaviour.
More likely to follow.

Submitted by: phk@freebsd.org
1999-09-09 19:08:44 +00:00
kato
8c159df6ce Merge from sys/i386/i386/machdep.c revision 1.361. 1999-09-09 09:58:05 +00:00
phk
ea8d5153ca Make unused tape bmajors in past tense. 1999-09-08 18:46:22 +00:00
phk
5d43b3e6d7 Don't register a bmajor. 1999-09-08 18:45:58 +00:00
phk
9a6860ba7d Make sa/bdev, gd/bdev and gd/cdev as past-tense. 1999-09-08 17:02:40 +00:00
kato
4564ee38da Merge from sys/i386/i386/userconfig.c revisions 1.157 & 1.158. 1999-09-07 12:11:52 +00:00
kato
f1769f14cc Commented out k6_mem.c. 1999-09-07 12:09:26 +00:00
kato
8aecc90c7c Change isa_get/set_flags() to device_get/set_flags().
Submitted by:	dfr
1999-09-07 11:17:09 +00:00
kato
b0c80ddb89 Merge from sys/i386/isa/clock.c revision 1.145. 1999-09-04 01:39:52 +00:00
kato
76a0e25b92 Merge from sys/i386/conf/files.i386 revision 1.264. 1999-09-04 01:36:23 +00:00
kato
68f5d86b7c Sync with sys/i386/i386/userconfig.c revision 1.156. 1999-09-02 13:44:52 +00:00
kato
6fbf48598a Sync with sys/i386/conf/files.i386 revision 1.263. 1999-09-02 13:43:00 +00:00
kato
f50bf9cd83 Sync with sys/i386/conf/GENERIC revision up to 1.186. 1999-09-02 13:41:15 +00:00
phk
7def0bc767 Set si_bsize_phys and si_bsize_max in all legacy CD drivers. 1999-09-01 13:03:05 +00:00
phk
b0a4cf1544 Try to win back the "removal of most crufty code" trophy from markm:
Remove WD formatting code which has never worked in 386bsd or FreeBSD.

Remove  DIOCSSTEP and DIOCSRETRIES ioctls as well, they belong in
history, along with the SMD disks.

OK'ed by:	bde
1999-09-01 11:32:52 +00:00
kato
32578c4daf - Removed COMPAT_ATDISK from option because it is pseudo-device now.
- Fixed arguments of atcompat_dsinit() in diskslice_machdep.c.
1999-08-29 21:28:47 +00:00
phk
9f769de84a Merge alpha and pc98 changes into i386 MBR handling code and replace all
three copies with one copy in MI land.
1999-08-29 09:12:54 +00:00
kato
bd14e46d74 Changed from dname into devtoname(bp->b_dev) in the function dsinit(). 1999-08-29 05:05:27 +00:00
nyan
f98ac3b4e9 Merge missing changes from sys/i386/conf/GENERIC. 1999-08-28 16:49:58 +00:00
nyan
de07d79e72 Fix ordering. 1999-08-28 16:20:53 +00:00
nyan
48f819b5a4 - The old printer driver is renamed 'olpt'.
- Added the gdc driver.
1999-08-28 15:17:25 +00:00
kato
e696937c35 Added MII bus support.
Reminded by:	phk
1999-08-28 15:04:27 +00:00
phk
9c72381e09 We don't need to pass the diskname argument all over the diskslice/label
code, we can find the name from any convenient dev_t
1999-08-28 14:33:44 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
julian
397a45108d Remove some vestiges of devfs direct calls. 1999-08-27 08:31:20 +00:00
julian
a0797ab43e Add PHK's make_dev() into more places where DEVFS used to be
hooked in directly.

Alpha change checked by: Matthew Jacob <mjacob@feral.com>
i4b ISDN changes checked by: Udo Schweigert <ust@cert.siemens.de>
    and Hellmuth Michaelis <hm@hcs.de>
PC98 changes checked by: Takahashi Yoshihiro <nyan@FreeBSD.org>
1999-08-27 07:26:26 +00:00
phk
663cbe4fc2 Convert DEVFS hooks in (most) drivers to make_dev().
Diskslice/label code not yet handled.

Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers)

Add the correct hook for devfs to kern_conf.c

The net result of this excercise is that a lot less files depends on DEVFS,
and devtoname() gets more sensible output in many cases.

A few drivers had minor additional cleanups performed relating to cdevsw
registration.

A few drivers don't register a cdevsw{} anymore, but only use make_dev().
1999-08-23 20:59:21 +00:00
kato
05f20638ad Updated to new keyboard driver.
Submitted by:	yokota & nyan
1999-08-23 13:50:08 +00:00
kato
8355780de3 Merge from sys/dev/syscons/syscons.c revision 1.319.
Submitted by:	Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
1999-08-23 13:45:28 +00:00
kato
4d774b3f0b Merge from sys/i386/isa/npx.c revision 1.76. 1999-08-23 13:42:22 +00:00
kato
d8cb917b88 Merge from sys/i386/i386/userconfig.c revision 1.153. 1999-08-23 13:41:00 +00:00
kato
6b9d586de3 Merge from sys/i386/conf/options.i386 revision .1.20. 1999-08-23 13:39:32 +00:00
kato
ecead4fb16 Merge from sys/i386/isa/spkr.c revision 1.38. 1999-08-18 08:24:35 +00:00
kato
65bba00ef1 Merge from sys/i386/i386/machdep.c revision 1.359. 1999-08-18 08:22:10 +00:00
kato
9fc64d62e1 Merge from sys/i386/conf/files.i386 revision 1.259. 1999-08-18 08:20:28 +00:00
nyan
4b60bc4b35 Use V-FAST mode register to check whether it supports V-FST mode.
Submitted by:	WATANABE Takuya <sodium@xuni.ne.jp>
1999-08-17 04:33:11 +00:00
phk
8675115e75 Give if_tun the "almost clone" makeover. 1999-08-15 09:54:57 +00:00
phk
682e4187a9 Give BPF the "almost-clone" update. If you need more of them, make
more entries in /dev and be happy you don't need to recompile your
kernel.
1999-08-15 09:38:21 +00:00
phk
5f45261e99 Spring cleaning around strategy and disklabels/slices:
Introduce BUF_STRATEGY(struct buf *, int flag) macro, and use it throughout.
please see comment in sys/conf.h about the flag argument.

Remove strategy argument from all the diskslice/label/bad144
implementations, it should be found from the dev_t.

Remove bogus and unused strategy1 routines.

Remove open/close arguments from dssize().  Pick them up from dev_t.

Remove unused and unfinished setgeom support from diskslice/label/bad144 code.
1999-08-14 11:40:51 +00:00
kato
356d26500e Merge from sys/i386/conf/majors.i386 revision 1.82. 1999-08-13 04:59:47 +00:00
kato
2514e13d91 Cosmetic changes in PC98 functions:
- Removed spaces after `(' and preceding `)'.
  - Added missing spaces after commas.
  - Fixed indentations.
1999-08-10 13:24:18 +00:00
kato
f57e9809f8 Fixed a compiler warning by conversion from pointer to integer. 1999-08-10 12:55:06 +00:00
kato
8c9b3c8625 - Removed unused variable.
- Fixed missing argument of printf.
- Fixed printf format.
- Added parentheses suggested by the compiler.
1999-08-10 09:13:48 +00:00
kato
f4970b7e4f Sync with sys/i386/conf/userconfig.c revision 1.152. 1999-08-10 08:35:57 +00:00
nyan
4c255fd09d Fixed checking a type of the interface.
Submitted by:   Tomohiko Kurahashi <kura@tim.hi-ho.ne.jp>
1999-08-09 13:03:35 +00:00