Commit Graph

1241 Commits

Author SHA1 Message Date
Poul-Henning Kamp
1ab305ef60 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 Takenori
237683b2f4 Sync w/ sys/i386/isa/pcaudio.c revision 1.54. 1999-09-28 08:19:53 +00:00
KATO Takenori
a6c90a53bc Removed aha driver. 1999-09-28 08:16:37 +00:00
KATO Takenori
0450d8a8f6 Sync w/ sys/i386/conf/files.i386 revision 1.274. 1999-09-28 08:07:42 +00:00
KATO Takenori
fc821b3264 ed driver re-activated. 1999-09-27 03:39:15 +00:00
KATO Takenori
7cfba8ab34 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
Yoshihiro Takahashi
1a847d4dac Merge from sys/isa/fd.c revision 1.146, 1.153, 1.154 and 1.159. 1999-09-27 03:32:31 +00:00
Yoshihiro Takahashi
1497e88aa9 Merge from sys/i386/isa/spkr.c revision 1.37 and 1.39. 1999-09-26 03:24:37 +00:00
Yoshihiro Takahashi
29a7ea851d Merge from sys/i386/isa/pcaudio.c revision 1.50. 1999-09-26 03:22:34 +00:00
Yoshihiro Takahashi
b22d0128a4 Merge from sys/i386/isa/mse.c revision 1.44. 1999-09-26 03:21:38 +00:00
Poul-Henning Kamp
d6a0e38a1b 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
Poul-Henning Kamp
ae8e1d08d7 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
Yoshihiro Takahashi
2d4084ce79 Remove unnecessary file. This file is obsolete by newbus integration. 1999-09-25 14:17:05 +00:00
Poul-Henning Kamp
46783fb897 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
Yoshihiro Takahashi
c72561ae94 Merge from sys/i386/conf/files.i386 revision 1.270 and 1.271. 1999-09-25 05:39:19 +00:00
Yoshihiro Takahashi
a1e145f227 - 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 Takenori
33833e82bd 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 Takenori
acb4866855 Sync with sys/dev/syscons/syscons.c revision 1.322. 1999-09-23 03:37:40 +00:00
KATO Takenori
20b6dab0ac Sync with sys/i386/isa/npx.c revision 1.78. 1999-09-22 12:01:36 +00:00
KATO Takenori
2c2798f123 Sync with sys/i386/i386/userconfig.c revision 1.159. 1999-09-22 11:59:14 +00:00
KATO Takenori
8be215cb0c Sync with sys/i386/conf/majors.i386 revision 1.86. 1999-09-22 11:58:11 +00:00
KATO Takenori
714ac51294 Added mp_clock.c. 1999-09-22 11:57:12 +00:00
KATO Takenori
49100c9e21 Commented out ed driver. 1999-09-22 11:55:25 +00:00
KATO Takenori
3ff89cce61 Sync with sys/i386/conf/GENERIC revision 1.192. 1999-09-22 11:54:03 +00:00
Poul-Henning Kamp
2ab8cd46e9 Set si_iosize_max rather than d_maxio.
Register devsw in *attach instead of a SYSINIT.
1999-09-20 19:58:38 +00:00
Poul-Henning Kamp
81f7c76af5 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
Poul-Henning Kamp
11a0be87e3 Two more devstat_end_transaction() -> devstat_end_transaction_buf(). 1999-09-19 12:43:34 +00:00
Poul-Henning Kamp
2186cd9e8d Use devstat_end_transaction_buf() rather than Use devstat_end_transaction() 1999-09-18 21:30:27 +00:00
Yoshihiro Takahashi
35762dce78 Gdc and pckbd driver don't support pnp mode. 1999-09-14 12:57:40 +00:00
Bruce Evans
887ba12fc5 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 Takenori
4e7d4af091 Merge from sys/i386/conf/GENERIC revision 1.190. 1999-09-13 08:55:15 +00:00
Yoshihiro Takahashi
1065b855f9 Fixed missing changes from sys/isa/sio.c. 1999-09-12 13:44:54 +00:00
Yoshihiro Takahashi
c95341117e Merge missing changes from sys/i386/conf/files.i386. 1999-09-12 12:32:49 +00:00
Julian Elischer
85a219d201 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 Takenori
909bce6f2b Merge from sys/i386/i386/machdep.c revision 1.361. 1999-09-09 09:58:05 +00:00
Poul-Henning Kamp
b24d30561d Make unused tape bmajors in past tense. 1999-09-08 18:46:22 +00:00
Poul-Henning Kamp
c27b8405da Don't register a bmajor. 1999-09-08 18:45:58 +00:00
Poul-Henning Kamp
6523748af1 Make sa/bdev, gd/bdev and gd/cdev as past-tense. 1999-09-08 17:02:40 +00:00
KATO Takenori
544c54c96f Merge from sys/i386/i386/userconfig.c revisions 1.157 & 1.158. 1999-09-07 12:11:52 +00:00
KATO Takenori
c5e304773e Commented out k6_mem.c. 1999-09-07 12:09:26 +00:00
KATO Takenori
62fdcb4fc6 Change isa_get/set_flags() to device_get/set_flags().
Submitted by:	dfr
1999-09-07 11:17:09 +00:00
KATO Takenori
acd0dd6ce1 Merge from sys/i386/isa/clock.c revision 1.145. 1999-09-04 01:39:52 +00:00
KATO Takenori
4fcaaf69e7 Merge from sys/i386/conf/files.i386 revision 1.264. 1999-09-04 01:36:23 +00:00
KATO Takenori
ae46296f4c Sync with sys/i386/i386/userconfig.c revision 1.156. 1999-09-02 13:44:52 +00:00
KATO Takenori
c1699f31a8 Sync with sys/i386/conf/files.i386 revision 1.263. 1999-09-02 13:43:00 +00:00
KATO Takenori
de7e0308e8 Sync with sys/i386/conf/GENERIC revision up to 1.186. 1999-09-02 13:41:15 +00:00
Poul-Henning Kamp
db6f05bfac Set si_bsize_phys and si_bsize_max in all legacy CD drivers. 1999-09-01 13:03:05 +00:00
Poul-Henning Kamp
df8f292395 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 Takenori
545a1c84b2 - 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
Poul-Henning Kamp
f054c29093 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