KATO Takenori
c3a6416c86
Rename GENERIC98 to GENERIC.
2000-05-04 04:58:30 +00:00
Peter Wemm
365c5db0a7
Add $FreeBSD$
2000-05-01 20:32:07 +00:00
Peter Wemm
ab063af911
Move the MSG* and SEM* options to opt_sysvipc.h
...
Remove evil allocation macros from machdep.c (why was that there???) and
use malloc() instead.
Move paramters out of param.h and into the code itself.
Move a bunch of internal definitions from public sys/*.h headers (without
#ifdef _KERNEL even) into the code itself.
I had hoped to make some of this more dynamic, but the cost of doing
wakeups on all sleeping processes on old arrays was too frightening.
The other possibility is to initialize on the first use, and allow
dynamic sysctl changes to parameters right until that point. That would
allow /etc/rc.sysctl to change SEM* and MSG* defaults as we presently
do with SHM*, but without the nightmare of changing a running system.
2000-05-01 13:33:56 +00:00
Yoshihiro Takahashi
517b2a8d5c
Clean up MAXMEM routine.
...
Submitted by: "K.Magara" <magara@maizuru-ct.ac.jp>
2000-04-30 08:52:47 +00:00
Yoshihiro Takahashi
de64b8c968
Fixed to support JIS7 KANJI.
...
Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp>
2000-04-30 08:40:43 +00:00
Poul-Henning Kamp
87150cb06d
s/biowait/bufwait/g
...
Prodded by: several.
2000-04-29 16:25:22 +00:00
Poul-Henning Kamp
eb95c536ad
Remove unneeded #include <sys/kernel.h>
2000-04-29 15:36:14 +00:00
Yoshihiro Takahashi
e73f2591dc
Fixed typo.
2000-04-29 05:55:33 +00:00
Yoshihiro Takahashi
d3331668b3
Supported EGC 640x400, PEGC 640x400 and PEGC 640x480 graphics modes.
...
Submitted by: Chiharu Shibata <chi@bd.mbn.or.jp> and
Tomokazu HARADA <tkhara@osk4.3web.ne.jp>
2000-04-27 13:34:32 +00:00
Yoshihiro Takahashi
cd6f7fcd8d
machine/random.h -> sys/random.h
2000-04-27 13:13:43 +00:00
Yoshihiro Takahashi
f23d815dbd
Add wormio.h. The wd driver needs it.
2000-04-27 13:09:07 +00:00
Yoshihiro Takahashi
b81eb9cfd6
Sync with sys/i386/conf/GENERIC revision 1.252.
2000-04-23 09:04:42 +00:00
Yoshihiro Takahashi
4b38c2c0ac
Release allocated resources and return ENXIO on error.
2000-04-22 15:12:52 +00:00
Poul-Henning Kamp
3389ae9350
Remove ~25 unneeded #include <sys/conf.h>
...
Remove ~60 unneeded #include <sys/malloc.h>
2000-04-19 14:58:28 +00:00
Poul-Henning Kamp
0991b97a30
Convert three drivers not covered by any of our kernel configs.
...
We really need a LINT98 and possibly LINTALPHA kernels.
2000-04-18 13:21:46 +00:00
Warner Losh
487e50ecdb
hm committed newbused vt driver this weekend, so it is no longer needed
...
in isa_compat.
LINT now builds again.
2000-04-17 23:01:53 +00:00
Poul-Henning Kamp
8177437d85
Complete the bio/buf divorce for all code below devfs::strategy
...
Exceptions:
Vinum untouched. This means that it cannot be compiled.
Greg Lehey is on the case.
CCD not converted yet, casts to struct buf (still safe)
atapi-cd casts to struct buf to examine B_PHYS
2000-04-15 05:54:02 +00:00
Yoshihiro Takahashi
e81dafee50
Added wdreg.h. PC-98 still uses the wd driver.
2000-04-14 11:29:15 +00:00
Yoshihiro Takahashi
f71c82a792
Added wdreg.h and fixed path.
2000-04-13 10:37:49 +00:00
KATO Takenori
df01d25d3e
Include pc98.h instead of isareg.h.
...
Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
Reminded by: nyan
2000-04-12 14:08:02 +00:00
KATO Takenori
86cc4d7dfa
- Fixed counter number (timer2 -> timer1).
...
- Fixed operator in pcaintr (andb -> orb).
Pointed out by: nyan
2000-04-12 13:19:44 +00:00
Yoshihiro Takahashi
00add4ed4f
The nss driver is compatible mode.
...
Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
2000-04-12 13:02:54 +00:00
KATO Takenori
cae3675927
Merged from sys/i386/isa/isa_compat.c revisions 1.19 and 1.20.
2000-04-12 11:23:16 +00:00
Yoshihiro Takahashi
4b00895121
Newbusify adv driver.
...
Reviewed by: imp
2000-04-07 11:32:42 +00:00
Poul-Henning Kamp
c244d2de43
Move B_ERROR flag to b_ioflags and call it BIO_ERROR.
...
(Much of this done by script)
Move B_ORDERED flag to b_ioflags and call it BIO_ORDERED.
Move b_pblkno and b_iodone_chain to struct bio while we transition, they
will be obsoleted once bio structs chain/stack.
Add bio_queue field for struct bio aware disksort.
Address a lot of stylistic issues brought up by bde.
2000-04-02 15:24:56 +00:00
KATO Takenori
769e7115b7
Merged from sys/isa/sio.c revisions 1.293 and 1.294.
2000-04-01 11:27:31 +00:00
Peter Wemm
255108f385
Make sysv-style shared memory tuneable params fully runtime adjustable
...
via sysctl. It's done pretty simply but it should be quite adequate.
Also move SHMMAXPGS from $machine/include/vmparam.h as the comments that
went with it were wrong... we don't allocate KVM space for the pages so
that comment is bogus.. The only practical limit is how much physical
ram you want to lock up as this stuff isn't paged out or swap backed.
2000-03-30 07:17:05 +00:00
Warner Losh
5664bf9cea
NewBus the cs driver.
...
Submitted by: max@rsu.ru
2000-03-30 05:16:16 +00:00
Yoshihiro Takahashi
239fe111cd
- Added PC-98 Cbus frontend.
...
- Move dev/aic/aic_isa.c entry from conf/files to conf/files.MACHINE
because PC-98 uses different file.
Submitted by: nyan and IMAI Takeshi <take-i@ceres.dti.ne.jp>
2000-03-29 14:32:34 +00:00
Yoshihiro Takahashi
3de3db30db
Newbusify mse driver.
2000-03-29 14:23:16 +00:00
KATO Takenori
af5d822f28
Commented out apm0. It could cause hang-up.
2000-03-29 13:39:15 +00:00
Yoshihiro Takahashi
6566129694
- Supported display suspended mode.
...
- Switch on/off not only text screen but also graphic screen.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
2000-03-29 12:29:27 +00:00
Yoshihiro Takahashi
8b838a7ac2
Merge from the following changes.
...
File Revision
sys/conf/files.i386 1.303 and 1.304
sys/dev/kbd/atkbd.c 1.23
sys/dev/syscons/scterm-sc.c 1.2
sys/dev/syscons/scvgarndr.c 1.5
sys/dev/syscons/scvtb.c 1.5
sys/dev/syscons/syscons.c 1.335
sys/isa/syscons_isa.c 1.11
sys/isa/vga_isa.c 1.17
2000-03-29 12:26:41 +00:00
KATO Takenori
a729b39d7c
Merged from sys/isa/fd.c revision 1.180.
2000-03-28 15:09:13 +00:00
KATO Takenori
ab067f0297
Merged from sys/i386/i386/userconfig.c revision 1.179.
2000-03-28 15:07:28 +00:00
KATO Takenori
d46a1af4b6
Merged from sys/i386/i386/machdep.c revision 1.387.
2000-03-28 15:04:29 +00:00
KATO Takenori
6eeafd696c
Merged from sys/i386/isa/clock.c and sys/isa/sio.c revisions 1.150 and
...
1.292, respectively.
2000-03-23 08:55:45 +00:00
KATO Takenori
bef3dd268d
Removed B_READ and B_WRITE.
2000-03-23 08:53:15 +00:00
KATO Takenori
aad7652706
Disable fdctl_wr_foo. This feature is not supported by PC98.
2000-03-23 08:50:56 +00:00
Yoshihiro Takahashi
9d97e36cc4
Added the joy driver (commented out).
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
2000-03-22 03:19:37 +00:00
Yoshihiro Takahashi
562039fa5b
Fixed style bugs.
2000-03-20 14:50:48 +00:00
KATO Takenori
de6c289a4d
Removed old boot loader.
2000-03-20 12:14:12 +00:00
Poul-Henning Kamp
b99c307a21
Rename the existing BUF_STRATEGY() to DEV_STRATEGY()
...
substitute BUF_WRITE(foo) for VOP_BWRITE(foo->b_vp, foo)
substitute BUF_STRATEGY(foo) for VOP_STRATEGY(foo->b_vp, foo)
This patch is machine generated except for the ccd.c and buf.h parts.
2000-03-20 11:29:10 +00:00
Poul-Henning Kamp
21144e3bf1
Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new
...
field in struct buf: b_iocmd. The b_iocmd is enforced to have
exactly one bit set.
B_WRITE was bogusly defined as zero giving rise to obvious coding
mistakes.
Also eliminate the redundant struct buf flag B_CALL, it can just
as efficiently be done by comparing b_iodone to NULL.
Should you get a panic or drop into the debugger, complaining about
"b_iocmd", don't continue. It is likely to write on your disk
where it should have been reading.
This change is a step in the direction towards a stackable BIO capability.
A lot of this patch were machine generated (Thanks to style(9) compliance!)
Vinum users: Greg has not had time to test this yet, be careful.
2000-03-20 10:44:49 +00:00
KATO Takenori
bf8a6679dc
Merged from sys/isa/fd.c.
2000-03-19 15:18:22 +00:00
KATO Takenori
7c0e7abcf9
Merged from sys/i386/i386/userconfig.c rev 1.178.
2000-03-19 14:46:22 +00:00
KATO Takenori
9b8b69aae4
Added COMPAT_OLDPCI and COMPAT_OLDISA options.
2000-03-19 14:42:52 +00:00
Yoshihiro Takahashi
1bb26f3a43
Fixed header file path and added necessary file.
2000-03-17 12:56:23 +00:00
Yoshihiro Takahashi
05f94cca19
Sync with sys/i386/i386/userconfig.c revision 1.175 and 1.176.
2000-03-17 12:24:59 +00:00
Yoshihiro Takahashi
54bfac8fdc
Backed out ppc0 flags addtion. It isn't necessary without PPC_PROBE_CHIPSET
...
option.
Pointed out by: peter
2000-03-17 11:37:03 +00:00
Yoshihiro Takahashi
2b60363d7f
Fixed to probe extended memory for over 256M or under 64M.
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
2000-03-16 12:14:00 +00:00
Yoshihiro Takahashi
a97d495cb9
Fixed to support old parallel interface.
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
2000-03-16 12:06:29 +00:00
Yoshihiro Takahashi
13b6f8f604
Added 'flags 0x40' to ppc0.
2000-03-16 12:03:36 +00:00
Yoshihiro Takahashi
1a9a318055
Changed sio1 flags to 0x12000010 to enable serial console.
...
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
2000-03-16 11:53:16 +00:00
Poul-Henning Kamp
d8b47cbb70
Stop isadma from abusing the B_READ, B_RAW and B_WRITE flags.
...
Define ISADMA_{READ,WRITE,RAW} macros with the same numeric
values as the B_{READ,WRITE,RAW} and use them instead throughout.
2000-03-13 10:19:32 +00:00
KATO Takenori
5a9a82e820
Merged from sys/isa/sio.c revision 1.291.
2000-03-12 13:14:51 +00:00
KATO Takenori
e299a9db22
Merged from sys/isa/sio.c revisions 1.289 and 1.290.
2000-03-10 10:34:36 +00:00
KATO Takenori
f1b7989974
Merged from sys/i386/isa/isa_compat.h revision 1.27.
2000-03-01 08:56:47 +00:00
KATO Takenori
bb8a9f4d25
Merged from sys/i386/i386/userconfig.c revision 1.174.
2000-03-01 08:55:23 +00:00
KATO Takenori
ce4274863e
Merged from sys/i386/i386/machdep.c revisions 1.384 and 1.385.
2000-03-01 08:53:59 +00:00
KATO Takenori
9c675e3c19
Merged from sys/i386/conf/GENERIC revisions 1.243, 1.244 and 1.245.
2000-03-01 08:52:28 +00:00
KATO Takenori
df16ced79a
Merged from sys/isa/sio.c rev 1.288.
2000-02-17 15:09:12 +00:00
KATO Takenori
baf67f3c77
Synced with sys/i386/i386/userconfig.c rev 1.173.
2000-02-17 14:45:05 +00:00
Peter Wemm
242c5536ea
Clean up some loose ends in the network code, including the X.25 and ISO
...
#ifdefs. Clean out unused netisr's and leftover netisr linker set gunk.
Tested on x86 and alpha, including world.
Approved by: jkh
2000-02-13 03:32:07 +00:00
KATO Takenori
6ccd04a652
Synced with sys/dev/syscons/syscons.c rev 1.336.
2000-02-11 08:54:56 +00:00
KATO Takenori
2611194fd9
Synced with sys/dev/syscons/scterm-sc.c rev 1.4.
2000-02-11 08:54:16 +00:00
KATO Takenori
48ca6b1019
Synced with sys/i386/conf/GENERIC revision 1.241.
...
Approved by: jkh
2000-02-05 00:43:04 +00:00
KATO Takenori
3c21e97804
Synced with sys/i386/conf/GENERIC rev 1.240.
...
Approved by: jkh
2000-02-03 10:46:28 +00:00
KATO Takenori
c03afedeb6
Synced with sys/i386/isa/isa_compat.h rev 1.18.
...
Approved by: jkh
2000-02-01 09:00:09 +00:00
KATO Takenori
fbaefbb0a1
Synced with sys/i386/isa/wd.c revision 1.219.
...
Approved by: jkh
2000-02-01 08:57:21 +00:00
KATO Takenori
2c46e1df9d
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 Wemm
68b538c712
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 Wemm
af88e209a2
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 Wemm
e27c1addaa
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 Takenori
85c5708bab
Synced with sys/isa/ppc.c rev 1.26.
2000-01-29 14:30:28 +00:00
KATO Takenori
7c315a1e4f
Synced with sys/kern/subr_diskmbr.c rev 1.44.
2000-01-29 14:21:04 +00:00
KATO Takenori
f8dc9ee050
Synced with sys/kern/subr_diskmbr.c rev 1.43.
2000-01-29 14:00:58 +00:00
KATO Takenori
28788b9a91
Synced with sys/isa/ppc.c rev 1.25.
...
Reminded by: nyan
2000-01-29 13:40:17 +00:00
KATO Takenori
2e1b2d7571
Cosmetic changes.
...
- Fixed order of include files.
- Fixed white spaces.
2000-01-29 07:36:46 +00:00
KATO Takenori
6dbccd6e00
Synced with sys/isa/sio.c rev 1.287.
2000-01-29 04:47:22 +00:00
KATO Takenori
c95e192ba7
Synced with sys/i386/isa/wd.c rev 1.218.
2000-01-29 04:42:49 +00:00
KATO Takenori
930ba557d5
Merged with sys/i386/conf/GENERIC rev 1.238.
2000-01-28 07:15:23 +00:00
Yoshihiro Takahashi
78bd1e8a57
Merge from sys/i386/conf/GENERIC revision 1.231, 1.232 and 1.235.
2000-01-28 01:07:48 +00:00
KATO Takenori
cd1d380722
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 Takenori
3c7aa0b427
Synced with sys/i386/isa/npx.c rev 1.79.
2000-01-26 11:16:14 +00:00
Peter Wemm
d224cddc38
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 Takenori
fa7f776c1a
Merged from sys/i386/conf/GENERIC rev 1.236.
2000-01-24 14:02:34 +00:00
KATO Takenori
ca4aa7abe0
Synced with sys/i386/isa/isa_compat.h rev 1.25.
2000-01-24 13:58:18 +00:00
Peter Wemm
d0cde06dd3
Remove some no-op "port ?" and "irq ?" declarations.
2000-01-24 08:52:29 +00:00
KATO Takenori
69d4b82b48
Return ENXIO on error.
...
Submitted by: n_hibma
2000-01-24 08:20:54 +00:00
Peter Wemm
3fc005f656
Drop 'at ppbus?' and trailing '0' from ppbus children.
2000-01-23 14:47:58 +00:00
Peter Wemm
ea46992cd9
Remove useless trailing digit from pci and other unwired devices.
2000-01-23 12:20:09 +00:00
Peter Wemm
1816634e49
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 Wemm
a8f8e0bd03
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
Yoshihiro Takahashi
450a74c2bb
- 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 Takenori
2945c302da
Synced with the sc driver in the sys/dev/syscons directory.
...
Submitted by: yokota
2000-01-20 15:16:49 +00:00
Yoshihiro Takahashi
3f681c0c41
Fixed typo.
2000-01-20 12:37:06 +00:00
KATO Takenori
21e10b2d88
Synced with sys/isa/sio.c rev 1.285.
2000-01-20 08:37:54 +00:00
KATO Takenori
6d7f3c6331
Synced with sys/i386/i386/userconfig.c rev 1.169.
2000-01-20 08:35:32 +00:00
KATO Takenori
c818f7b9de
Synced with sys/i386/conf/GENERIC rev 1.230.
2000-01-20 08:34:40 +00:00