Commit Graph

24301 Commits

Author SHA1 Message Date
mjacob 7692effeed Make some changes wrt EOM behaviour. Distinguish EIO_PENDING from
EOM_PENDING. Set up a persistent EARLYWARNING behaviour flag. If
set, EOM behaviour forces a 'short read' to signal logical (as
opposed to physical) end of media. The user application may, of
course, do with this information what it will.

The EARLYWARNING behaviour may be enabled/disabled by a MTIOCTOP
operation. The default action is to not have EARLYWARNING enabled-
but this may be reversed by an option ST_ENABLE_EARLYWARN in
the kernel build.
1998-07-30 00:55:20 +00:00
mjacob 4205ca3d2a opt_scsiverbose.h now is opt_scsi.h and contains the defopted
SCSIVERBOSE and the new ST_ENABLE_EARLYWARN.
1998-07-30 00:49:19 +00:00
mycroft f53fedba63 Regen. 1998-07-30 00:46:27 +00:00
mycroft d588e17601 __Namespace__ __protection__. 1998-07-30 00:46:01 +00:00
mjacob 4fe629bf62 add MTIOCTOP/MTEWARN option to enable/disable Early Warning EOM behaviour 1998-07-30 00:44:46 +00:00
mrg 813b2f15cf allow ELFSIZE to be pre-defined 1998-07-30 00:27:04 +00:00
fvdl d40e353fa6 Add NOLUNS quirk for the UMAX Astra 1220 scanner. 1998-07-30 00:00:06 +00:00
augustss a0803787f7 Add functions to execute asynchronous requests and use these from
interrupt context.
[I had some feline debugging help here.  I noticed that every time Kem,
our kitty, jumped onto the USB keyboard the machine crashed.]
1998-07-29 20:50:11 +00:00
augustss f453d02883 Make sure to report wheel movements. 1998-07-29 20:44:32 +00:00
pk ab0e92568b <sparc/dev/sbusvar.h> => <dev/sbus/sbusvar.h> 1998-07-29 18:48:54 +00:00
pk 9104b183fa Lots of things have moved to <dev/sbus/sbusvar.h> 1998-07-29 18:45:57 +00:00
pk 402a052405 Deal with sbus attach args changes. 1998-07-29 18:44:22 +00:00
pk 9e4d2f9b53 Switch to new sbus attach arguments layout. 1998-07-29 18:42:32 +00:00
pk 58d952ce7d Deal with sbus attch args changes.
Use sbus_destroy_attach_args().
1998-07-29 18:37:23 +00:00
pk 426330f642 We no longer need to get the register sets by ourselves. 1998-07-29 18:36:08 +00:00
pk 4f2fd378bb Use sbus_destroy_attach_args(). 1998-07-29 18:33:27 +00:00
pk 1d8ad313ab `struct rom_range' => `struct sbus_range' 1998-07-29 18:32:54 +00:00
pk 9a7ffd5724 Move some Sbus structures in here.
* attach arguments now directly support multiple register and
	  interrupt sets.
	* address translation (`ranges') has been made bus-specific
	* introduce sbus_destroy_attach_arg() to clean up after
	  attaching an an Sbus device.
1998-07-29 18:30:20 +00:00
pk 718ff722b7 In the reset() function, preserve the current cable selection bit.
If in auto media select mode, this avoids losing carrier every time
the lance code decides to re-initialize.
1998-07-29 16:10:57 +00:00
augustss 33a72d432a Add wss on isapnp. 1998-07-29 12:36:47 +00:00
mrg 179879e08f add Elf_em_sparc64 at 43 (from solaris 2.7) 1998-07-29 12:14:00 +00:00
augustss d6a8a4f025 Don't print chip name in attach, the ad1848 attach already does. 1998-07-29 11:39:25 +00:00
tsubai 5b03ac980b Use ite for screen console by default until wscons support. 1998-07-29 05:38:04 +00:00
tsubai fbd86622a0 Add ``install floppy'' config file. 1998-07-29 05:19:26 +00:00
tls 31d0752b99 change IN_IFADDR_HASH_SIZE to 509, which actually uses no more space than 293 due to rounding up to nearest power of two in hashinit. 1998-07-29 05:18:54 +00:00
thorpej 4b039671de When checking for overflow in the residual count, test against SSIZE_MAX.
The read/write system calls return ssize_t because -1 is used to indicate
error, therefore the transfer size MUST be limited to SSIZE_MAX, otherwise
garbage can be returned to the user.

There is NO change from existing behavior here, only a more precise
definition of that the semantics are, except in the Alpha case, where
the full SSIZE_MAX transfer size can now be realized (ssize_t is 64-bit
on the Alpha).
1998-07-29 02:07:19 +00:00
thorpej eb32016a95 Split up using BWX for PCI config and bus access. Default to using BWX for
the former, but not the latter.  Hopefully, this will address some problems
people have been experiencing w/ some devices on Pyxis systems when BWX
is used for bus access.  (If it's not used for PCI config access, we can
get fatal machine checks while probing behind PCI-PCI bridges!!)
1998-07-29 01:28:44 +00:00
mark 620bc79e36 Fix the copyin(), copyout() argument validation to check for zero
length copy before returning EFAULT for a bad address.
1998-07-29 00:56:08 +00:00
thorpej 1712467308 fic typi 1998-07-29 00:31:01 +00:00
thorpej 8a2c338704 Use a std options file, like other ports do. 1998-07-29 00:19:20 +00:00
thorpej 7698349700 Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.
1998-07-28 23:43:33 +00:00
thorpej c8f1cea511 Provide SSIZE_MAX. 1998-07-28 23:20:54 +00:00
thorpej 8a3626d966 ofcons attaches to ofbus, not pci! Comment it out, since we do not have
any ofbus support in these configurations.
1998-07-28 23:09:07 +00:00
thorpej d0714d3f21 Support NFS_BOOT_DHCP. 1998-07-28 23:02:06 +00:00
augustss 0733d4c87f Do locator related defines using defines from locators.h rather
than literal constants.
1998-07-28 22:01:24 +00:00
thorpej 99b10d9e98 Regen. 1998-07-28 21:51:34 +00:00
thorpej 463fc03c76 Add the IMS TwinTurbo 128M graphics board. 1998-07-28 21:50:30 +00:00
thorpej 37b70b3064 Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.
1998-07-28 21:39:54 +00:00
augustss ae97a4cbf5 Support for USB mice with Z axis or wheel. 1998-07-28 21:21:47 +00:00
thorpej 6dd25080b4 Garbage-collect ofisacs, noted by Scott Reynolds. 1998-07-28 21:19:13 +00:00
augustss 20f454ae1c KNFify. 1998-07-28 20:58:39 +00:00
pk 9111209fdf In _bus_dmamem_map(), use uvm_km_valloc() to get kernel addresses.
uvm_map() -- which used to be here (why was that?) -- was called with
an uninitialized value in its `start' argument.
1998-07-28 20:46:28 +00:00
mjacob d0aa61ad21 fix to accomodate change in vn_rdwr prototype 1998-07-28 20:37:33 +00:00
mjacob ed8d65b169 fix to accomodate change in vn_rdwr prototype 1998-07-28 20:25:28 +00:00
drochner 5788941588 document "Intelli"mouse support 1998-07-28 20:22:29 +00:00
drochner 0a5abbe31d Reset the mouse in attach(); Bog knows what other drivers did to it
in their probe()s.
Clean up some "pms" vs. "psm" naming confusion.
1998-07-28 20:18:36 +00:00
drochner fa0aee147e Use the new mkdtemp() instead of mktemp();mkdir().
Various cleanups (and typecasts) to get lint quiet.
Add remaining prototypes, enable -Wmissing-prototypes -Wstrict-prototypes.
1998-07-28 20:10:53 +00:00
thorpej 6326c90134 Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.
1998-07-28 18:37:47 +00:00
thorpej 3ff8e6493a Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
thorpej e8063e5201 Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:30:54 +00:00
thorpej e95c22ee96 Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:17:34 +00:00
thorpej 80e25bcca0 Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:11:39 +00:00
thorpej 939279f988 When checking for overflow in the residual count, test against SSIZE_MAX.
The read/write system calls return ssize_t because -1 is used to indicate
error, therefore the transfer size MUST be limited to SSIZE_MAX, otherwise
garbage can be returned to the user.

There is NO change from existing behavior here, only a more precise
definition of that the semantics are, except in the Alpha case, where
the full SSIZE_MAX transfer size can now be realized (ssize_t is 64-bit
on the Alpha).
1998-07-28 17:58:29 +00:00
thorpej e9b3213f03 Make uio_resid a size_t. 1998-07-28 17:55:38 +00:00
drochner 2dcc522f1d The fragtbl[], inside[] and around[] variables are needed by "fsck",
so we can't put them inside "#ifdef _KERNEL".
Put declarations inside .c files where needed to preserve namespace.
1998-07-28 17:30:01 +00:00
is 0d257affa0 Add some constants. 1998-07-28 16:03:49 +00:00
is a374ab61d8 ic/i82595reg.h 1998-07-28 16:02:34 +00:00
is 4fb93c48ec Remove dead code. 1998-07-28 14:44:46 +00:00
augustss 4e690f3740 Improve chances of success and make it compile again. 1998-07-28 14:16:29 +00:00
pk cc0d537633 GC. 1998-07-28 14:04:08 +00:00
is a276ff33bc Remove obsolete comment. 1998-07-28 12:25:53 +00:00
pk 4129139031 Supported medium is IFM_10_5 1998-07-28 12:22:37 +00:00
augustss daed8d7ce1 Fix obsolete code in waiting for calibration on the ad1848.
(Sigh, the ad1848 driver should be rewritten.)
1998-07-28 12:13:34 +00:00
augustss b068e817d9 Add missing .include <bsd.kinc.mk> 1998-07-28 08:45:46 +00:00
eeh 5ed2ac8a95 Apparently we need to specify both slot and offset for all SBUS devices.
This is really annoying....
1998-07-28 04:48:04 +00:00
eeh fbb376b4ee Fixup problems caused by sys/dev/sbus addition. 1998-07-28 04:46:48 +00:00
eeh 1053f23abf That last change to reduce warnings wasn't quite right. 1998-07-28 04:44:52 +00:00
mycroft 829367f279 Omit some externs if not _KERNEL. 1998-07-28 04:17:51 +00:00
pk 2c49105697 Fix #includes.
Remove #ifdef SUN4C & SUN4M.
1998-07-28 00:44:39 +00:00
pk 5bf04ed2be Add `sbus' to SUBDIRS. 1998-07-28 00:36:31 +00:00
pk fb7bb1a359 Remove mbppio.h from the list.
Also stop installing db_machdep.h, fbvar.h, z8530.h.
1998-07-28 00:34:56 +00:00
pk aaadc9459d This file is now in <dev/sbus> 1998-07-28 00:33:35 +00:00
pk 783e554213 One header to install. 1998-07-28 00:33:03 +00:00
pk 315e1a28de Fix #includes 1998-07-28 00:31:42 +00:00
pk 14f4493376 Magma driver has been moved to <dev/sbus>. 1998-07-28 00:19:22 +00:00
pk fd9017990f Magma driver has been moved to <dev/sbus> 1998-07-28 00:17:47 +00:00
pk b0f82d5c73 `le' and `en' now attach to sbus (and lebuffer) in <dev/sbus>
Other `le' front-ends split into separate files.
1998-07-28 00:10:23 +00:00
pk 4ca3b5c079 We no longer use these. 1998-07-28 00:06:23 +00:00
pk 3d9b1710a7 This file is now in dev/sbus. 1998-07-28 00:05:41 +00:00
pk c7a2e942b0 Split the `le' driver front-ends into separate files.
The sbus and lebuffer front-end have moved to dev/sbus.
1998-07-27 23:59:11 +00:00
pk 48ca0ed59d Lance front-ends on Sbus moved here. 1998-07-27 23:56:26 +00:00
perry f150e8645e NORVEGIAN -> NORWEGIAN 1998-07-27 23:55:23 +00:00
pk 947f2424a8 Add `le at sbus', `le at lebuffer' and `en at sbus'. 1998-07-27 23:54:58 +00:00
perry c4fae2a286 NORVEGIAN -> NORWEGIAN 1998-07-27 23:52:49 +00:00
pk fa624fd99a Moved to dev/sbus from arch/sparc/dev
Get headers from <dev/sbus>
1998-07-27 23:47:07 +00:00
tron a79f26fe76 Regen from pcidevs. 1998-07-27 22:58:43 +00:00
tron 04affecc7a "Brooktree Brooktree Bt848" -> "Brooktree Bt848" 1998-07-27 22:58:07 +00:00
drochner ee4bf8991d add support for native "Intelli" mice (wheel = z axis) 1998-07-27 22:36:23 +00:00
pk eec66e52bd Get headers from <dev/sbus> 1998-07-27 22:34:48 +00:00
drochner 1b27072062 add zero z axis argument 1998-07-27 22:34:30 +00:00
drochner 87ad9bca7a add third axis for pointing devices (flying mice) 1998-07-27 22:33:22 +00:00
tron 0d386417e9 Regen from pcidevs. 1998-07-27 21:37:17 +00:00
tron d54ccbde1a Add Brooktree Bt848 and BT849 video capture chips. 1998-07-27 21:34:11 +00:00
augustss e8e8a975af Regen. 1998-07-27 20:04:10 +00:00
augustss 6585f9ebc1 Add S3 SonicVibes. 1998-07-27 20:02:27 +00:00
pk d1f03e068a <sparc/dev/sbusvar.h> => <dev/sbus/sbusvar.h> 1998-07-27 19:32:42 +00:00
pk 81ff4e8b36 qec device register definitions (from OpenBSD). 1998-07-27 19:27:19 +00:00
pk 3252d462bb qec `bus' driver; much like lebuffer. 1998-07-27 19:26:32 +00:00
pk 08a95cc833 Change copyright. 1998-07-27 19:25:34 +00:00
pk 2e6ea67528 Use <dev/sbus/files.sbus> 1998-07-27 19:20:32 +00:00
pk 6cd4c4ea99 Use <dev/sbus/files.sbus>. 1998-07-27 19:20:03 +00:00
pk db822a6c0a These files are now in <dev/sbus>. 1998-07-27 19:17:50 +00:00
pk e92f09b2b7 SBU_BURST_* are now in <dev/sbus/sbusvar.h> 1998-07-27 19:16:49 +00:00
pk e68ada23e2 Move "sbusvar.h" hack in here.
Also define SBUS_BURST_* values here.
1998-07-27 19:15:40 +00:00
pk 3299f8cfe4 Get headers from dev/sbus. 1998-07-27 19:13:45 +00:00
pk b1fe2da904 get headers from dev/sbus 1998-07-27 19:13:06 +00:00
pk 444f71921e sbus configuration file. 1998-07-27 19:04:14 +00:00
augustss 47f172660c Make ums attach to wsmouse only. 1998-07-27 18:51:32 +00:00
augustss c720383eb3 Nuke USB mouse device. 1998-07-27 18:50:42 +00:00
bouyer 7c050065fd Correct indent. 1998-07-27 18:42:27 +00:00
bouyer 11245c76f7 Ops, forgot FINNISH_KBD. 1998-07-27 18:38:07 +00:00
thorpej e3eed5f706 Fix cfattach naming botch. 1998-07-27 18:27:36 +00:00
thorpej 88a83f13de Back out previous. 1998-07-27 18:27:08 +00:00
drochner 1e737a4010 add definition for pointing device's absolute z coordinates 1998-07-27 18:17:08 +00:00
mjacob 6ebd8cf4e3 Comment out cs device. Kernels don't compile because there is no
cfattach structure found. Leave it to the author to untangle.
1998-07-27 18:02:02 +00:00
drochner e6f2ea1f40 define a z axis for pointing devices which support this 1998-07-27 16:59:22 +00:00
is 4c3784857e back out last change 1998-07-27 15:10:05 +00:00
mycroft da2e61d160 Delint. 1998-07-27 13:55:32 +00:00
bouyer 82370f62b3 Document FRENCH_KBD,GERMAN_KBD,NORVEGIAN_KBD options. 1998-07-27 13:39:51 +00:00
mycroft 633b8f45a9 Make many of the new consts dependent on a new `__AUDIT__' flag, to avoid
breaking third party software.  *sigh*
1998-07-27 09:09:03 +00:00
is aaa6d634aa write prototype: void * -> const void *.
[Else the Amiga bootblock can't be built.]
1998-07-27 06:17:49 +00:00
mrg db03bbe99b this has moved (and was never used here anyway) 1998-07-27 06:09:02 +00:00
mrg f0065b1a61 don't provide a static splx prototype if SPLDEBUG. avoids warnings... 1998-07-27 06:05:55 +00:00
mrg b8b9e0bd1e move to sys/dev/sbus for lebuffer driver (old path never existed anyway) 1998-07-27 05:52:21 +00:00
mrg 36ee8a045b use lebuffer.c from dev/sbus. 1998-07-27 05:49:02 +00:00
mrg c5e180526b these have moved to sys/dev/sbus. 1998-07-27 05:48:42 +00:00
mrg 06d5ffd2a8 enable kernfs and mfs. 1998-07-27 05:45:17 +00:00
mrg 53017397ee move these files to sys/dev/sbus. currently uses a hack to access the correct "sbusvar.h" XXX fix me. 1998-07-27 05:43:58 +00:00
thorpej b0b64545e8 Add cs* at isa? port 0x300, wildcard IRQ and memory address, to pull
them from the EEPROM.  Wildcard DRQ to force memory-mode operation; this
value is not available in the EEPROM and must be configured manually.
1998-07-27 01:57:56 +00:00
thorpej fca2dc28ac Add cs0 at isa? port 0x300, wildcard IRQ and memory address, to pull
them from the EEPROM.  Wildcard DRQ to force memory-mode operation; this
value is not available in the EEPROM and must be configured manually.
1998-07-27 01:51:29 +00:00
thorpej 9b35e91d59 Update for cs* at ofisa? 1998-07-27 01:44:20 +00:00
thorpej 803df07221 Obsolete. 1998-07-27 01:43:24 +00:00
thorpej 6d885615a2 Obsolete. 1998-07-27 01:42:19 +00:00
thorpej 8db7ed28a4 ISA with OpenFirmware configuration glue for the CS8900 Ethernet driver. 1998-07-27 01:26:43 +00:00
thorpej 0f7ec45c46 Add CS8900 Ethernet driver, and ISA front-end. 1998-07-27 01:22:41 +00:00
thorpej e9128957a6 ISA front-end for CS8900 driver. 1998-07-27 01:20:43 +00:00
thorpej f68dfbe928 Sigh, make this work with the i386 bus_space functions (which have debugging
glue in them, and thus subtle syntax quirks).
1998-07-27 01:20:19 +00:00
thorpej 2d588abad8 Split up the Shark CS8900 driver into front-ends and core back-end (which
is here, since the chip can only live on an ISA bus; only the autoconfig
glue is different).
1998-07-27 01:08:51 +00:00
thorpej 6828d39080 Actually provide the correct bus space tags. 1998-07-27 00:48:15 +00:00
pk 9e8d90ed5c Add a cpu-specific function to flush a pure virtually-indexed/virtually-tagged
cache, which needs to be flushed at context switch.
1998-07-26 23:35:32 +00:00
pk 4998ae50c0 Define hypersparc instruction-cache flush ASI. 1998-07-26 23:29:58 +00:00
thorpej b9aeeb3fa1 Remove a test, making diagnosis of IRQ problems easier. 1998-07-26 21:24:37 +00:00
augustss 80104fac9f Use wscons attachments for USB keyboard and mouse. 1998-07-26 17:45:53 +00:00
augustss 638fb6a638 A first stab att supporting console access with a USB keyboard. 1998-07-26 17:42:48 +00:00
mycroft 9ad899cc18 constify some tables. 1998-07-26 11:24:14 +00:00
mycroft ae170ee9b6 constify some tables. 1998-07-26 11:22:11 +00:00
mycroft 44436bf77f constify some tables. 1998-07-26 11:11:07 +00:00
simonb a211774da1 Fix typo with new poolpage stuff 1998-07-26 10:15:36 +00:00
simonb 0034263cb2 Fix missing semi-colon 1998-07-26 10:03:29 +00:00
simonb 8ed2fad5f9 Add missing trailing $ to $NetBSD$ line (PR #5530). 1998-07-26 09:47:22 +00:00
simonb b454e7c097 Add mainbus0 and cpu definitions, remove extra DS_5100 option. 1998-07-26 09:45:25 +00:00
ragge a799083fba Fix netboot support for 3100/m76 which uses diagmem for its lance buffers. 1998-07-26 09:01:23 +00:00
is 8eebf1cfc5 yet more atomic operations accessing DraCo registers 1998-07-26 06:45:17 +00:00
explorer c7c9374600 add declaration for hd64570, which the ntwo driver uses 1998-07-26 03:29:12 +00:00
explorer ab207dc49d add ntwo* at pci? function ?, a T1 network driver. 1998-07-26 03:28:28 +00:00
explorer c5e450957a add (hopefully) bus-independent hd64570 driver, for the Hitachi serial
controller chip.
1998-07-26 03:26:57 +00:00
augustss 4e1976a433 Use PCI class/subclass/interface to match USB host controllers instead
of vendor/product id.  This makes the probe find more controllers
without recompilation.
1998-07-26 00:40:59 +00:00
augustss 72de215752 Use PCI class/subclass/interface to match USB host controllers instead
of vendor/product id.  This makes the probe find more controllers
without recompilation.
1998-07-25 23:23:01 +00:00
explorer 12f40f6481 commit this so it gets the right generated from tag 1998-07-25 23:12:16 +00:00
pk c6124a986a This file is no longer used. 1998-07-25 22:19:25 +00:00
pk 6ad50a6691 Allocate physical memory for the pv_table array in bootstrap(), so we
don't have to call VM functions from pmap_init().

Use a memory pool for additional pvlist entries (used for double mappings).

Take care of the cacheable bit on pagetables while we're initializing them,
instead of calling kvm_uncache() afterwards.
1998-07-25 22:01:19 +00:00
augustss 7c50ea1e65 Insert lots of ``#if NWSMOUSE > 0'' and ``#if NWSDISPLAY > 0'' to make it
possible to have a wsmouse and/or wskbd without having a wsdisplay.
1998-07-25 20:02:20 +00:00
augustss 50f955ff49 Nuke ukbd (USB keyboard) device, we use wskbd now. 1998-07-25 15:39:28 +00:00
augustss 3ff58ab530 Add wscons attachments for USB keyboard. 1998-07-25 15:36:30 +00:00
augustss 6532f4f144 Add an ioctl() to get host controller statistics. 1998-07-25 15:22:11 +00:00
augustss 2c5f27cf9d Don't print device class in attach message. 1998-07-25 15:19:09 +00:00
augustss 8bafec3cec I forgot to commit these when usb_mem was added. 1998-07-25 15:15:39 +00:00
tsubai db105fc687 Make vtophys() return non-zero even if the addr < end. 1998-07-25 15:06:28 +00:00
explorer 9043581b85 define RISCom and RISCom N2 product 1998-07-25 11:57:50 +00:00
explorer d83ea88a76 define DLT_HDLC 1998-07-25 11:31:18 +00:00
is 401f1157b0 Use atomic operations for DraCo interupt registers 1998-07-25 11:01:11 +00:00
msaitoh d97448cc55 back to previous one. 1998-07-25 09:47:27 +00:00
is 2a78f6986c no semicolon, please 1998-07-25 09:24:17 +00:00
is 3d0dcc7181 This has been in amiga/amiga/mtpr.h for a long, long time. 1998-07-25 07:21:20 +00:00
augustss 67ec8587a0 Provide wsmouse attachment for the USB mouse driver.
XXX Keep /dev/ums* for now since XFree86 does not understand wsmouse yet.
1998-07-25 01:46:38 +00:00
thorpej f0ff548dd2 Rewrite the probe to use values from the EEPROM for membase and IRQ
if they're not specified by the attach arguments, so that they can
be reported by isaprint().  Rearrange the attach routine to facilitate
splitting this up into front- and back-end drivers.
1998-07-25 01:15:54 +00:00
wrstuden 43a04e85ab Another printf(%:) down. 1998-07-25 00:42:03 +00:00
thorpej 930937fd49 Define the CS8900 memory size, and macros to test for valid memory
base and IRQ.
1998-07-25 00:41:47 +00:00
thorpej b4195e59cd Change the interface to the EEPROM functions such that they can be called
from the probe routine.
1998-07-24 23:25:13 +00:00
thorpej 260b2a20f2 Provide PMAP_{,UN}MAP_POOLPAGE(). 1998-07-24 22:03:33 +00:00
augustss b916de0f86 Add special memory allocation routines that supports allocation
DMA-able memory in small chunks (USB uses a lot of 8 byte chunks).
Using the bus_dma functions directly is inefficient.
1998-07-24 21:09:07 +00:00
pk 91f18e727f Remove conditionals on SUN4C+SUN4M.
A few cosmetic changes.
1998-07-24 21:08:16 +00:00
augustss 06e7ed2009 Make sure requests are aborted properly when the pipe is aborted. 1998-07-24 21:02:51 +00:00
augustss 1a5dd77c56 Punt if the mouse reports absolute coordinates. 1998-07-24 20:59:57 +00:00
augustss b79d954aac Let hid_locate() return the item flags as well as the position. 1998-07-24 20:57:46 +00:00
tsubai 1ca186e04d G3 Macs also needs to fix pci io/mem enable bits. 1998-07-24 20:53:57 +00:00
thorpej bf51a1d137 uvm_deallocate() takes an address and a size, not an address range. From
ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>, PR #5834.
1998-07-24 20:47:59 +00:00
thorpej 2385ee5eca Provide PMAP_{,UN}MAP_POOLPAGE(). 1998-07-24 20:32:07 +00:00
thorpej 8325d058bf Implement uvm_km_{alloc,free}_poolpage(). These functions use pmap hooks to
map/unmap pool pages if provided by the pmap layer.
1998-07-24 20:28:48 +00:00
thorpej 6127f55620 Implement kmem_{alloc,free}_poolpage(). These functions use pmap hooks to
map/unmap pool pages if provided by the pmap layer.
1998-07-24 20:27:26 +00:00
thorpej fc4828b0b4 A few small changes to how pool pages are allocated/freed:
- If either an alloc or release function is provided, make sure both are
  provided, otherwise panic, as this is a fatal error.
- If using the default allocator, default the pool pagesz to PAGE_SIZE,
  since that is the granularity of the default allocator's mechanism.
- In the default allocator, use new functions:
	uvm_km_alloc_poolpage()/uvm_km_free_poolpage(), or
	kmem_alloc_poolpage()/kmem_free_poolpage()
  rather than doing it here.  These functions may use pmap hooks to
  provide alternate methods of mapping pool pages.
1998-07-24 20:19:23 +00:00
thorpej 7d8833a179 Put back swap_data_lock, which was apparently deleted accidentally during
the last round of changes.  (I noticed it because I run my kernels w/
LOCKDEBUG.)
1998-07-24 18:46:02 +00:00
drochner 658e297dd6 Initialize the new "dispoffset" (but don't use it for anything fancy). 1998-07-24 16:22:51 +00:00
drochner 3d545acb51 Overload the generic "copyrows" function by a private one which implents
a "fast scroll" by setting the display start in memory.
(Only implemented for "scroll up" because this is more used. "scroll down"
is easy to add.)
This moves the semantics of "copyrows" to something like "moverows";
the contents of the new visible lines at the bottom is undefined.
The emulations can live without the original "copy" semantics.
1998-07-24 16:20:14 +00:00
drochner 7764b57db5 allow the displayed area to start anywhere in display memory,
add a "dispoffset" variable to control this
1998-07-24 16:12:18 +00:00
tsubai 5cc05df4ca Comment out "insert root disk..." message.
Remove unnecessary video init.
1998-07-24 15:52:04 +00:00
rvb d33dfcd7dc Coda glue 1998-07-24 15:40:42 +00:00
rvb b1d69203b3 Coda glue 1998-07-24 15:18:21 +00:00
tsubai 5f9682b601 Calculate DELAY constant before configure(). 1998-07-24 14:40:40 +00:00
drochner e81ad8e2c6 add random generator hook 1998-07-24 13:42:29 +00:00
drochner 6dc9297499 remove unneeded typecast 1998-07-24 13:41:52 +00:00
sommerfe 1c2f0a15fd Don't create the extent region pool until one of our callers is of the
opinion that it's safe to call malloc.
1998-07-24 06:40:45 +00:00
sommerfe 8ba3494f9a Deal with new pool code's changed API by rewriting this to not use pools.
Instead, use a manually maintained freelist in a second tailq.
Uses less data space, looks more symmetrical.
1998-07-24 03:29:29 +00:00
gwr 4eeeee6a7c Print a complaint when no children were specified
in the config file.  Better than a link error...
1998-07-23 23:48:33 +00:00
gwr 4a15b6ba7d Make this like the other redirect includes. 1998-07-23 23:47:02 +00:00
gwr 7e0d396bf4 Add xyc to the dev/xy.c line, similar for xd. 1998-07-23 23:45:24 +00:00
pk f836b9e8d3 Drop private page table list maintenance; use memory pools instead. 1998-07-23 21:42:40 +00:00
pk 4e465abf3f Use a memory pool instead of malloc to allocate region descriptors. 1998-07-23 20:57:17 +00:00
pk a96abe7092 Update pool_* functions to new interface. 1998-07-23 20:52:01 +00:00
pk 363f729ada Use memory pools to allocate swap buffers. Allocations are all dynamic;
in particular `nswbuf' is gone, as is the private "struct buf" list that
was previously maintained in here.
1998-07-23 20:51:09 +00:00
pk 20f05a4bb5 Include pool_drain() in page scans. 1998-07-23 20:36:09 +00:00
pk 73ffa498ec Define M_POOL. 1998-07-23 20:34:59 +00:00
pk e32923a128 Re-vamped pool manager.
* support for customized memory supplier
	* automatic page reclaim by VM system
	* time-based hysteresis
	* cache coloring (after Bonwick's "slabs")
1998-07-23 20:34:00 +00:00
christos 1253bfdf46 Utilize the centralized probe function. 1998-07-23 19:32:42 +00:00
christos fe7d31fe1e First-gen 1998-07-23 19:31:36 +00:00
christos bdb2269a46 Create a master list of pnp logical and compatibility device codes instead
of hard-coding it into each driver and use a centralized probe function.
1998-07-23 19:30:44 +00:00
thorpej 8d611b5f32 Remember the product ID and revision. 1998-07-23 19:25:52 +00:00
thorpej d2bc077edb G/c a now unsed config flag. 1998-07-23 19:03:11 +00:00
thorpej 1c9aed40f6 Round-out full-duplex support. 1998-07-23 19:02:55 +00:00
msaitoh 31177b97e7 In usercodes, we use getpagesize() instead of NBPG. 1998-07-23 18:15:57 +00:00
thorpej 458ba64f3a Slight variation on last; be a bit more zealous about fixing up the
clock source.  Now, when my EtherPower II locks up, it eventually recovers!

(Geez, I'd like to know why it does this, and only apparently in 10mb/s mode).
1998-07-23 17:37:38 +00:00
drochner c4c3297772 update comment ("John F. Woods" <jfw@funhouse.com>, PR kern/5798) 1998-07-23 16:39:24 +00:00
drochner 56a5adfaff Switch keyboard to "event mode" on open.
Nuke wskbd_set_translation(). It doesn't fit into the "screen" model.
1998-07-23 14:33:01 +00:00
augustss d6ef9cbb33 Add some comments and a function to set the alternate settings in an
interface.
1998-07-23 13:44:21 +00:00
augustss 8cdf268a45 Implement bulk transfer for OHCI. 1998-07-23 13:41:04 +00:00
pk 217addc8de Option DDB_ONPANIC needs a value. 1998-07-23 13:03:23 +00:00
drochner 7cdf5d9a77 retry disk accesses (for shaky floppy drives) 1998-07-23 09:59:44 +00:00
augustss c263b1d26f Don't leak memory if opening a pipe fails. 1998-07-23 09:18:37 +00:00
pk 84840da908 in_pcballoc(): we can't afford to wait for memory. 1998-07-23 08:24:33 +00:00
augustss 964fdc18b8 Use the pipe maximum packet length rather than the device max length when
setting up a transfer.
Update the UHCI data toggle correctly.
1998-07-23 01:46:27 +00:00
augustss 0f40401a23 Fix bug in freeing TD chain after bulk transfer. 1998-07-23 00:27:36 +00:00
thorpej 202d438148 CS8900 driver has of_network_dev property. 1998-07-22 22:09:59 +00:00
thorpej c10c18b955 Get media from OpenFirmware. 1998-07-22 22:09:18 +00:00
thorpej daf40e1b0b Add common OpenFirmware network interface functions. Currently supports
decoding the `supported-network-types' and `chosen-network-type' properties
into ifmedia words.
1998-07-22 22:04:14 +00:00
tsubai 04e498dae6 Change from "-G 0" to "-G0" for egcs. 1998-07-22 19:59:21 +00:00
is 0751419914 Back out previous change. It breaks Seyon in a non-obvious way. 1998-07-22 19:13:02 +00:00
drochner 4c50fd2165 regen 1998-07-22 17:43:11 +00:00
drochner 28f1e61164 add IDs for ACC Micro 2051 "PCI Single Chip Solution" 1998-07-22 17:41:04 +00:00
leo 101f67646c Add '<ufs/ufs/dinode.h>' to the include list. (Julian Coleman) 1998-07-22 12:49:42 +00:00
augustss 40060e366e Loop over all configurations when trying to probe for interface drivers. 1998-07-22 12:22:08 +00:00
christos e6efe5f7e9 Regen 1998-07-22 11:48:58 +00:00
christos 194f94bd97 Don't print bogus info about vendors in pcmciadevs_data.h
(Reported by John Kohl)
1998-07-22 11:47:13 +00:00
augustss f190634e3d Add an Acer labs USB controller. 1998-07-22 10:43:37 +00:00
thorpej 05ff8b05f5 Print the default media at attach time. 1998-07-21 23:09:25 +00:00
thorpej 02ad0b4eda Add support for ifmedia. 1998-07-21 22:58:31 +00:00
thorpej d3882c1b56 Define autonegotiation bits. 1998-07-21 22:27:33 +00:00
thorpej 3db796d287 Define a couple more of the PacketPage registers. 1998-07-21 22:04:13 +00:00
thorpej aaa383804d Correct the name of the CS8920M id. 1998-07-21 19:54:56 +00:00
thorpej 88a0132aec Correct the name of the CS8920M id, and fix some whitespace lossage. 1998-07-21 19:54:19 +00:00
tsubai cc035ff82e Oops, I forgot to commit this with bus_dma stuff. 1998-07-21 18:01:30 +00:00