Commit Graph

2419 Commits

Author SHA1 Message Date
cgd cd9ef2be9c make the EISA code look a bit more like the PCI code, in the way
the bus is configured, interrupts are handled, etc.  define
eisa_chipset_tag_t and eisa_intr_handle_t types, and the following
functions:
        eisa_attach_hook()
        eisa_maxslots()
        eisa_intr_map()
        eisa_intr_string()
        eisa_intr_establish()
        eisa_intr_disestablish()
to do the right things for the i386.
1996-04-09 23:00:25 +00:00
cgd 4444d2866e there's now a eisa_machdep.c which must be included when including
EISA support.
1996-04-09 22:59:03 +00:00
cgd 3ccd8b454e it's now safe to include both isavar.h and eisavar.h. Also, pass
an appropriate cookie (NULL) to the EISA attach code for use with the
EISA functions.
1996-04-09 22:58:29 +00:00
thorpej 43411d2e96 Convert to use <machine/bus.h>. 1996-04-09 00:46:15 +00:00
jtc c4bd7796ba Add to DPADD for each library in LDADD; Reported by Mike Long <mike.long@analog.com> in PR #2301. 1996-04-08 21:21:54 +00:00
thorpej 84c7027789 Add bus_io_{read,write}_multi_{1,2,4,8}() to the <machine/bus.h>
interface, and implement them (except for the 8-byte versions) on
the i386.
1996-04-05 23:59:37 +00:00
cgd 83f9bdc359 update for the fact that config_found() and config_rootfound() now
return pointers.  (Check vs. NULL, rather than just boolean tests.)
1996-04-04 06:25:00 +00:00
cgd 5645e460ac apparently, it's now appropriate to use 'bt at isa' for bt54x SCSI
controllers, rather than the historic 'aha at isa'.
1996-04-04 05:01:51 +00:00
mycroft 46c087980e Add explicit return types. 1996-04-03 08:55:20 +00:00
mycroft deef34f203 Add explicit return types. 1996-04-03 08:18:27 +00:00
mycroft 4f6c412517 Remove an old `#define DIAGNOSTIC'. 1996-04-03 05:48:35 +00:00
chuck b9eb8ab773 change "pcvt25h" in the example ttys file to "pcvt25"
to match changes in NetBSD's /usr/share/misc/termcap.
1996-04-03 04:37:44 +00:00
chuck c132a81557 as per cgd:
temporarily revert bus config order back to isa->eisa->pci
	until port allocation/accounting is ready (XXX).

	works around problem of the if_ep driver's probe function trashing
	an adaptec 2940 if the BIOS maps it in at port 0xf000.  (the
	BIOS on my new P166 does this, ... the BIOS on my P133's does not).
	without this the P166 system will reset as soon as spl0() is called
	(autoconf.c) making it impossible to install the OS.
1996-04-03 04:26:38 +00:00
chuck 79ca6b2c5f removed references "updatefast" and "updateslow" as they are no longer
defined/used.
1996-04-02 05:07:21 +00:00
chuck 8b39fc7f9f removed refs to pcvtinfo.{updatefast,updateslow} as these are no longer
defined (or used).
1996-04-02 05:05:16 +00:00
scottr 47b5b87d08 Clean up, primarily KNF. 1996-04-01 06:39:17 +00:00
perry f825488c3c Added (commented out) line for joystick driver. 1996-03-30 23:57:09 +00:00
jtk 7ab53a4163 fix up ddb at boottime for pcvt--device not allocated yet, and not used by pcintr 1996-03-30 23:40:18 +00:00
mycroft bd6e60f0d5 Add explicit return types. 1996-03-30 07:51:51 +00:00
mycroft fba10af524 Add explicit return types. 1996-03-30 07:30:33 +00:00
mycroft e1ceb9a557 Add wds0 and wds1 to generic kernels. 1996-03-30 05:42:45 +00:00
mycroft df45c0b542 Prototype some internal functions. 1996-03-29 01:15:04 +00:00
mycroft 6424af4c10 Prototype delay(). 1996-03-29 00:23:28 +00:00
mycroft 6e2bbd2d92 Use offsetof() for structure offsets. 1996-03-28 23:44:04 +00:00
mycroft 42bfe3a4f3 Add a return type for main(). 1996-03-28 22:33:10 +00:00
perry ee2fa11baf add joystick driver from Matthieu Herrb (pr #2267) 1996-03-27 19:11:13 +00:00
perry 39ac1f2cad Remove obsolete rd_match_hook and sync with sun3 version again. 1996-03-27 16:38:33 +00:00
mycroft 30c174cdcf Use a more standard and more sane error cleanup convention... 1996-03-27 06:49:54 +00:00
cgd da3136aba8 modify these to provide a new, better-specified PCI interface
(soon to be documented on mailing lists; eventually in section 9 manual
pages), most importantly:
	(1) support interrupt pin swizzling on non-i386 systems with
	    PCI-PCI bridges (per PPB spec; done, but meaningless, on i386).
	(2) provide pci_{io,mem}_find(), to determine what I/O or memory
	    space is described by a given PCI configuration space
	    mapping register.
	(3) provide pci_intr_map(), pci_intr_string(), and
	    pci_intr_{,dis}establish() to manipulate and print info about
	    PCI interrupts.
	(4) deprecate the pci_map_* functions, and provide them only
	    as compatibility interfaces (in pci_compat.c) which will
	    eventually go away, implemented as wrappers around
	    the functions described above.
	(5) make pci functions take as an argument a machine-dependent
	    cookie, to allow more flexibility in implementation.
1996-03-27 04:01:10 +00:00
perry 0e05503b1b added to support rd (ramdisk) pseudodevice needed for new install system. 1996-03-25 18:49:18 +00:00
perry 0c01ef4333 Add changes to support rd (ramdisk) pseudodevice, needed for new
install system.
1996-03-25 18:47:47 +00:00
perry 4a9fd2c5f4 Added support for rd (ramdisk) pseudodevice, needed for new install system. 1996-03-25 18:44:29 +00:00
perry 3a7ebace87 Add COMPAT_11 option. 1996-03-25 05:45:08 +00:00
jtk 5e4b11dfc1 updated spkr attachment to use new pckbd attribute 1996-03-18 01:46:23 +00:00
jtk 83bdfcf5c9 attach the speaker device to pckbd (it falls in the I/O range of the
keyboard/console device cluster)
1996-03-18 01:26:10 +00:00
thorpej 82d914d090 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 01:26:49 +00:00
thorpej 0c71728320 Change the PS/2 mouse driver to be a child of the "pckbd" attribute,
which represents the "keyboard controller".  Give "pc" and "vt" drivers
the "pckbd" attribute.  In pcattach() (pccons and pcvt), attach children
of the keyboard controller.
1996-03-16 06:08:46 +00:00
jtc 2ce5f1478b Add _BSD_WINT_T_ definition so we can handle wint_t type added in NA1. 1996-03-16 01:31:45 +00:00
chuck 1079c8c2aa change Debugger() from an int function to a void function to match the
prototype in sys/systm.h (which was just put in in by christos)
with revision 1.43 of sys/systm.h
	revision 1.43
	date: 1996/03/14 18:59:12;  author: christos;  state: Exp;  lines: +1 -3
	systm.h: Bring Debugger() prototype into scope.
1996-03-15 00:07:18 +00:00
christos ab0e60a42f fdopen -> filedescopen 1996-03-14 21:20:59 +00:00
cgd 0926920201 (1) remove the #ifdef i386 from pci.c, and provide a machine-dependent
hook (pci_md_attach_hook()) to do any machine-dependent attachment
    gunk, e.g. on the i386 printing out the configuration mode (if bus 0)
(2) don't pass max device number for a given bus in, use
    PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
    (defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:59 +00:00
cgd 20af97b2c0 don't pass max device number for a given bus in, use
PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
(defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:28 +00:00
scottr 61927fc337 Fix typo (pointed out by Shinya Taniguchi, PR 2203) 1996-03-12 06:01:16 +00:00
perry 1faa1f926b close prs #2076 and #2159: Install kernels have had DIAGNOSTIC and
KTRACE removed to make them fit on the floppies. All kernels have had
the comment typo "internally consistency" changed to "internal consistency".
1996-03-12 01:32:43 +00:00
cgd 0a6a29c792 update for new commulti->com attach interface. com ports at 'ast'
multiport cards no longer need 'flags 1', because the "don't set IEN"
requirement is communicated by the commulti_attach_args.  com.c no longer
recognizes 'flags 1' at all.
1996-03-10 09:03:13 +00:00
ghudson 4e0c8707f7 To enable people to mount DOS partitions on disks with no NetBSD
partition, add the MBR partitions to the default (faked-up)
disklabel used by NetBSD if it can't find a real one.  If the
type of the MBR partition is one of the common DOS ones, mark the
partition as having an MSDOS filesystem.
1996-03-09 20:52:54 +00:00
cgd ea21ff117e rather than doing something hairy in the print routine, to the
'logically right' thing: define a mainbus_attach_args union which is
all of the subdevices' bus attach args, together with the part that's
shared by all of them, a const char * (the bus name).
1996-03-08 21:55:47 +00:00
cgd 8d459740a7 kill some 'notyet's so that <machine/bus.h> is used 1996-03-08 20:26:59 +00:00
cgd 91d7642d30 implement bus_mem_map() and bus_mem_unmap() functions. 1996-03-08 20:19:48 +00:00
cgd 0b56afadf3 make this idempotent. bus.h needs to include it, and other things which
may include something that includes bus.h may include it as well.
1996-03-08 20:15:23 +00:00
cgd 6826c7bf48 bus memory and I/O space access functions/macros, to be used by
machine-independent code for more sane access to bus resources.
New functions will be added to this set, in the future, as appropriate,
but this is a good starting set.  Defines:
	bus_{io,mem}_{map,unmap}
	bus_{io,mem}_{read,write}_{1,2,4,8}
functions, and several types to go with them.
1996-03-08 20:11:23 +00:00
mycroft 2732f4510b Rearrange boot() slightly. 1996-03-08 11:40:28 +00:00
mycroft 45ceba49fd Use label_t, not jmp_buf. 1996-03-08 06:49:45 +00:00
mycroft 8dbac07c10 Add a message to help us debug Linux compat. 1996-03-08 06:00:53 +00:00
jtk 7492f0d7f1 speaker takes one port, so declare it as such in isa_attach_args
fixes pr#2178
1996-03-07 00:54:14 +00:00
jtk ff6687748a speaker device uses a port, so declare it as such in all the config
files
1996-03-07 00:48:34 +00:00
mycroft 0903ac5cd2 Do an async_update() iff the output buffer is empty.
Make the IOPL handling #ifdef COMPAT_1[01].
1996-03-05 12:57:30 +00:00
mycroft 0c231d0e0d Update the CRT start registers asynchronously. 1996-03-05 11:38:31 +00:00
thorpej 85720fdf67 Add a blurb about the EXTMEM_SIZE option to the example kernels, disabled
by default.
1996-03-05 01:32:11 +00:00
thorpej b65bdb63d6 Add an EXTMEM_SIZE option to set the size of extended memory on systems
that lie about it.  Deals with PRs #1319 and #1831.
1996-03-05 01:28:51 +00:00
thorpej ae5cde21bd RCS id police. 1996-03-05 00:37:24 +00:00
cgd c8487c701e reorganize mapping register definitions 1996-03-04 19:30:50 +00:00
cgd 18ec26aa21 add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
execpt without quotes.  meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
mycroft 7f1ba9f148 Update for changed DMA interface. 1996-03-04 04:01:03 +00:00
cgd fedca4f133 Attach isa, eisa, and pci to mainbus now, rather than root. The i386
now has a single device tree (rather than a forest).  Also, attach
EISA only if it's present, and attach in order: PCI, EISA, ISA (most
specific to least specific).
1996-03-04 03:25:48 +00:00
jtk 8c395495bf set ia->ia_iosize to 0 so that the probe code doesn't spit out lots of
gunk.
1996-03-03 04:12:48 +00:00
cgd 1c5d7babe5 Clean up tabbing/spacing in defns of MACHINE, MACHINE_ARCH, and MID_MACHINE. 1996-03-01 23:30:08 +00:00
scottr 9aebe01038 Add newlines to CPU class notices 1996-03-01 21:49:49 +00:00
cgd 3d67685d36 Do not build vnode_if.[ch] for each kernel. Build them once, like the
various syscall sources/headers, and just compile them.  From PR 2142, OK'd
by mycroft.
1996-02-29 20:54:58 +00:00
cgd 379b6eadf4 pci devices are now specified like "foo* at pci? dev ? function ?". also,
add support for PPB's and secondary PCI busses, where appropriate.
1996-02-28 02:02:29 +00:00
cgd 0bcfb3598b update for adjustments to ISA and PCI 'files' files 1996-02-28 01:58:25 +00:00
cgd df03361e4b update for new method of attaching isa/pci busses 1996-02-28 01:54:44 +00:00
cgd 591c6fd2cd make PCI bus match/attach and sub-device attachment machine-independent.
(remove that code from this file.)
1996-02-28 01:50:02 +00:00
cgd f5f5831829 make ISA bus match/attach and sub-device attachment machine-independent.
(remove that code from this file.)
1996-02-28 01:49:35 +00:00
jtc bfbc5fb90c Copyright assigned to the NetBSD Foundation 1996-02-27 22:39:39 +00:00
jtc 8bd51c47b9 Copyright assigned to the NetBSD Foundation 1996-02-27 22:28:09 +00:00
cgd e4a3b7650e oops; remove extraneous #if/#endif pair 1996-02-27 00:15:23 +00:00
cgd 570976f77c change previously-useless config_rootfound() for the EISA bus so that
it provides what the new MI EISA code expects.
1996-02-27 00:13:45 +00:00
cgd 188cda224f Trim some comments relating to EISA configuration that are no longer relevant. 1996-02-27 00:08:29 +00:00
cgd 440b3cbc94 update for new EISA autoconfiguration: there can now be an eisa0 at root,
and ahb attaches to eisa, not isa.  Also, ahb* at eisa?... is now supported,
so you can get all ahb's configured easily.
1996-02-27 00:06:42 +00:00
mycroft 2ce52ae489 Define build programs with `?=', so they can be overridden with `makeoptions'. 1996-02-26 02:53:20 +00:00
scottr 5be12dbfc8 Move the speaker driver to 'new' config. (Closes PR 1361, from Rafal Boni) 1996-02-22 05:53:16 +00:00
mycroft 2b9c3e10b9 Add SCSI scanner device. 1996-02-18 22:57:54 +00:00
mycroft f9596bfc43 Use the same timing hacks as in pccons for the keyboard. 1996-02-18 22:49:12 +00:00
mycroft 0e335a2150 Move the DDB initialization later. 1996-02-18 22:44:27 +00:00
mycroft d1bae2700f Add the obligatory copyright notice. 1996-02-18 13:01:05 +00:00
christos 4d234d08d8 Move pmap_page_index declaration to <vm/pmap.h> 1996-02-12 21:12:29 +00:00
christos 47058c3660 make pmap_page_index() return a signed int. 1996-02-12 21:11:20 +00:00
thorpej d586688437 In fdcretry(), set the state to DOSEEK rather than SEEKCOMPLETE before
retrying the operation.  Fixes disk_unbusy() imbalance and really seems
like the right thing to do in case it was the seek that failed.  Takes
care of PR #1985.  Patch from John F. Woods <jfw@jfwhome.funhouse.com>
1996-02-10 18:31:13 +00:00
christos 45aca3f276 fix _insque and _remque declarations 1996-02-10 00:51:52 +00:00
mycroft 45e308cd51 Be more verbose when a CPU class is not configured. 1996-02-09 17:15:27 +00:00
mycroft db070d4271 Enforce the hierarchy: imp > tty > net > bio, to cater to lame PC devices. 1996-02-09 02:26:00 +00:00
mycroft 753fe3a25a Fix mkdep problems due to missing flags. 1996-02-09 02:21:13 +00:00
jtc 7eb02879b7 Simplify -I's in CFLAGS 1996-02-05 07:42:54 +00:00
christos 684b37e33e vm prototype changes. 1996-02-05 01:59:12 +00:00
mycroft b6f55847e5 Fix #includes. 1996-02-03 01:05:36 +00:00
mycroft 5bc076e17e Use `-traditional-cpp' when building .s and .S files. 1996-02-03 00:43:50 +00:00
mycroft dcd66e9f4d Clone these, and fix many bugs. 1996-02-02 20:08:17 +00:00
mycroft 9db20bf150 Don't define _KERNEL here. 1996-02-02 19:42:08 +00:00
mycroft 9d9a70a5a2 Fix #includes. 1996-02-02 18:05:36 +00:00