Commit Graph

11365 Commits

Author SHA1 Message Date
oster
525f4a9bed Backout a line that accidentally got included when the .h reorg went in. 2001-10-06 00:47:46 +00:00
thorpej
c2a1bef2f3 Create the Tx DMA maps with a size large enough for a jumbo Ethernet
frame.
2001-10-06 00:14:59 +00:00
eeh
7fbd726cc8 Stop wscons from conflicting with rcons. 2001-10-05 22:08:28 +00:00
thorpej
0d4d2293bb Minor tidying up of the HME driver attach:
- Print nicer-looking message.
- Use bus_space_subregion() when appropriate, rather than arithmetic
  on a bus_space_handle_t.
2001-10-05 17:49:43 +00:00
oster
035a63f6d3 More #if 0's bite the dust. 2001-10-05 15:41:23 +00:00
oster
9d1d665dac Nuke some #if 0 stuff. 2001-10-05 15:33:12 +00:00
pooka
8d2fa0f7b6 add cast to u_long before cast to caddr_t make these compile on sparc64 2001-10-05 14:25:15 +00:00
thorpej
a5aff000fc Match the UMAX Astra 3400. 2001-10-05 00:31:06 +00:00
thorpej
7853ec7367 Regen; add UMAX Astra 3400 scanner. 2001-10-05 00:24:52 +00:00
thorpej
919f3bb120 Add UMAX Astra 3400 scanner. 2001-10-05 00:24:25 +00:00
hubertf
c072a38d4c Add missing comma 2001-10-04 23:36:10 +00:00
oster
d00ed4116f Tidy up the #includes a bit. (coulda/shoulda done that with last commit.) 2001-10-04 17:42:29 +00:00
oster
2621bd1124 rf_options.h isn't needed here. 2001-10-04 17:41:17 +00:00
oster
aa7a54f593 If rf_options.h needs to be include it, then include it. Don't rely on
another .h file to pull it in.
2001-10-04 17:39:18 +00:00
oster
dad0d4578c Nuke a couple of unused extern variable declarations. 2001-10-04 17:31:01 +00:00
oster
32c731329a These have been completely replaced by raidframevar.h and raidframeio.h. 2001-10-04 16:08:51 +00:00
oster
e4e898c2e0 Need to recurse into the raidframe subdir too. 2001-10-04 16:04:53 +00:00
oster
fe686dfde7 Setup installation mechanism for <dev/raidframe/raidframevar.h> and
<dev/raidframe/raidframeio.h>
2001-10-04 16:04:16 +00:00
oster
765e00d3de Step 2 of the disentanglement. We now look to <dev/raidframe/*> for
the stuff that used to live in rf_types.h, rf_raidframe.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, rf_decluster,h, and a few other places.
Believe it or not, when this is all done, things will be cleaner.

No functional changes to RAIDframe.
2001-10-04 15:58:51 +00:00
mrg
c68c2f3692 add new cd18xx, sio16, remove simba for sparc64 2001-10-04 15:56:35 +00:00
oster
46a6eb1477 Step 1 of the disentangling of RAIDframe's .h files:
raidframevar.h - contains bits of rf_types.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, and rf_decluster.h.

raidframeio.h - contains the bits needed for doing IOCTL's w/
RAIDframe.

These bits will be visible to userland.
2001-10-04 15:43:57 +00:00
augustss
96528f60d6 Add esl. 2001-10-04 10:43:10 +00:00
is
192ef03e2e Add repulse. 2001-10-04 10:24:59 +00:00
augustss
3d2be4cf9b Fix pasto in type of dev_ioctl method. 2001-10-03 20:48:41 +00:00
simonb
f13f663c13 Regen: Minor correction to the name of the 405GP PCI bridge. 2001-10-03 12:07:08 +00:00
simonb
f3706d5650 Minor correction to the name of the 405GP PCI bridge. 2001-10-03 12:05:49 +00:00
yamt
9946aef1da ack intr only when intr is for us. 2001-10-03 06:58:47 +00:00
mrg
0cfedcb2eb frontend driver for the 16 port serial card by aurora technologies. this
doesn't quite work yet -- interrupt acknowledgement is hosed (and thus the
device keeps interrupting).  uses the newly commited cd18xx backend.
2001-10-03 04:28:41 +00:00
mrg
5d4f3fa900 add a backend serial driver for the cirrus logic CL-CD180/1864/1865
8 port chip.  this is used in several sbus (sparc) serial boards, as
well as an 8 port isa card from riscom.  sio16 (sbus) frontend coming
shortly.

this is heavily based on the com and zs drivers.
2001-10-03 04:25:29 +00:00
augustss
1339e88a86 Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
augustss
9cf205c410 ANSIfy. 2001-10-02 23:31:54 +00:00
augustss
f51c550f74 ANSIfy. 2001-10-02 22:41:22 +00:00
mycroft
5f1dd50365 Add a WSKBD_TYPE_ADB for Macs. 2001-10-02 21:03:05 +00:00
pooka
787bb8ce97 fix system freeze in situation where you pop a pcmcia card out of the
slot while it is in operation

ok'd by thorpej
2001-10-02 19:17:07 +00:00
pooka
1e72a22c49 move DIAGNOSTIC-printf up one block to make it reachable
noted by Christophe Kalt in private email
2001-10-02 17:59:38 +00:00
eeh
a0265b2599 Remove some debug messages. 2001-10-01 23:55:00 +00:00
eeh
ef420318e0 Increase receive ring to 128 entries and handle both endian devices. 2001-10-01 23:39:57 +00:00
fvdl
9706e581b2 Don't map the aperture into KVA, it isn't needed. 2001-10-01 21:54:48 +00:00
fvdl
408e1d1b10 Fix bogus vdir offset calculation. 2001-10-01 14:41:09 +00:00
simonb
30d7e93296 Move pmax-only if_le_ibus.c from dev/tc to arch/pmax/ibus. 2001-10-01 11:42:17 +00:00
simonb
342856c15c Move asc_tc and asc_tcds config info to dev/tc/files.tc now that pmax
uses MI SCSI.
2001-10-01 10:22:42 +00:00
simonb
240c203d16 s/asc_pmaz/asc_tc/g 2001-10-01 10:19:09 +00:00
simonb
f976a7141c Move MI PMAZ-A SCSI attachment to sys/dev/tc. 2001-10-01 10:17:25 +00:00
yamt
0e8ee83d8f avoid losing a desc on error. 2001-10-01 09:26:29 +00:00
thorpej
4e77e1ee5f Regen; added product ID for RealTek 8139[BC]. 2001-10-01 00:28:02 +00:00
thorpej
2b02410c00 Add product ID for the RealTek 8139[BC]. 2001-10-01 00:27:33 +00:00
chs
30e122c6f1 in vndstrategy(), handle the underlying file being force-unmounted. 2001-09-30 12:32:09 +00:00
martin
2c433e9757 Fix a very stupid pasto - the card has two B channels, so better not
query the HSCX chip version of the third one.
2001-09-30 11:50:05 +00:00
yamt
cf2debbc86 force 0x1000 align for memory base before
calling rbus_space_alloc().
resource management may be inconsistent without it.
2001-09-30 06:32:02 +00:00
tshiozak
d645f8862c fix for Roland/EDIROL UM-880.
- add NULL check to UMQ_ISTYPE; sc_quirk is NULL for genuine umidi, but
    forgotten to check.  Thus, kernel will panic after connect the device.
  - fix how to count the number of endpoints in alloc_all_endpoints_genuine().
  - add a quirk for the native mode of UM-880.
2001-09-29 22:00:47 +00:00
augustss
d535feb911 Get rid of eslreh.h and use ../isa/essreg.h.
Minor whitespace fixes.
2001-09-29 19:30:29 +00:00
augustss
d09eea2ace Add a missing command. 2001-09-29 19:08:49 +00:00
augustss
b1d96a9b44 ANSIfy. 2001-09-29 19:06:32 +00:00
augustss
f75a223c4e Add the esl driver. 2001-09-29 18:46:16 +00:00
thorpej
fa591d48c0 - Add an acpi_evaluate_string() to evaluate string objects.
- In acpi_print(), try to evaluate the _STR object, and print
  it if the device is not configured.
- Make this compile without ACPI_DEBUG, from Masanori Kanaoka.
2001-09-29 18:13:48 +00:00
tsutsui
9cb10f82f8 Calculate offsets of sglist dinamically rather than use an static array
because PAGE_SIZE is not constant on some ports.
2001-09-29 14:23:37 +00:00
augustss
c018750423 Add esl driver for Eiger Labs sound card. From Jared D. McNeill
<jmcneill@invisible.yi.org>.
2001-09-29 14:00:57 +00:00
augustss
58a0f075d2 Regen. 2001-09-29 13:59:37 +00:00
augustss
da8947c921 Add Eiger Labs sound card. 2001-09-29 13:59:16 +00:00
augustss
797a70e551 Add a detach function (from Jared D. McNeill). 2001-09-29 13:56:04 +00:00
thorpej
84b2da1b5c Don't install a single system notify handler. 2001-09-29 05:39:14 +00:00
thorpej
4ce1f116cf Don't be DEBUG by default, but still be noisy about lid status
changes until such time as we actually do something with them.
2001-09-29 05:36:49 +00:00
thorpej
533c169276 Build acpi_resource.c, add "acpiec" and "acpiacad". 2001-09-29 05:36:03 +00:00
thorpej
2945805ff3 Skeleton ACPI AC Adapter driver. 2001-09-29 05:35:06 +00:00
thorpej
b41a7fd4de ACPI Embedded Controller driver. 2001-09-29 05:34:23 +00:00
thorpej
6179b9baef Add code to parse ACPI bus resources. 2001-09-29 05:34:00 +00:00
thorpej
391ff9e86d Flesh out w/ some comments from the spec, and add some _ADR decoding
macros.
2001-09-29 05:33:00 +00:00
yamt
274a22b8c0 remove a debug printf committed mistakenly. 2001-09-29 02:16:21 +00:00
yamt
da8b08386f - fix wrong ca_devsize.
- change #if 0 to meaningful name.
- enable memio.
2001-09-29 01:53:23 +00:00
yamt
4210698cd5 fix wrong ca_devsize. 2001-09-29 01:52:23 +00:00
augustss
37583aadfc Reenable RHSC interrupt after one second so hot plugging works.
(From OpenBSD.)
2001-09-28 23:57:21 +00:00
augustss
c5a4cc1291 Only clear the endpoint on stall (from FreeBSD). 2001-09-28 23:42:16 +00:00
augustss
901a3da087 Regen. 2001-09-28 23:41:33 +00:00
augustss
ef7e225e59 Rename Accton adapter (from FreeBSD). 2001-09-28 23:41:09 +00:00
thorpej
5c2e2edf22 Regen; more corrections to Intel Gig-e product IDs. 2001-09-28 22:06:25 +00:00
thorpej
435e4031ad More corrections to Intel Gig-e product IDs. 2001-09-28 22:06:04 +00:00
tshiozak
f32aef24fd Roland UM-880 has two modes each assigned product IDs.
UM880N (0x0014) : Native mode.
	UM880G (0x0015) : Generic USB MIDI mode.
2001-09-28 20:36:46 +00:00
tshiozak
114e12bdf1 add a new device; ROLAND/EDIROL UM-880 MIDI I/F with patcher. 2001-09-28 19:10:59 +00:00
mjacob
01e394b10d Now that we have a fixed thaw thingie- we can turn back on sleeping
on mailbox commands.
2001-09-28 16:23:19 +00:00
pk
fd12ba4f30 Don't force a fixed baud rate if the parent zs driver has already determined
the baud rate set by the PROM.
2001-09-28 14:34:49 +00:00
chs
984d30ac45 don't depend on other headers to include sys/proc.h for us. 2001-09-28 12:36:48 +00:00
chs
80373b7e54 don't depend on other headers to include sys/proc.h for us. 2001-09-28 11:59:51 +00:00
thorpej
1a9d24bce1 Add stub drivers for ACPI buttons and lid switches. These don't
really do anything yet.
2001-09-28 02:30:13 +00:00
thorpej
69f30a1104 Add some basic ACPI probing framework. This is far from complete,
it is merely a work in progress.
2001-09-28 02:09:22 +00:00
thorpej
bad233b1df config(8) files declaration for ACPICA. 2001-09-28 02:05:47 +00:00
thorpej
7fb46a1597 Minor changes to get ACPICA to compile with our kernel warning levels. 2001-09-28 01:59:43 +00:00
thorpej
5b5d892cd5 Add __attribute__((__unused__)) to _THIS_MODULE. 2001-09-28 01:52:52 +00:00
thorpej
46f84eb8d0 Fix include file mishap. 2001-09-28 01:37:03 +00:00
thorpej
6e9086bf0b Glue header file to pull in the ACPICA headers. 2001-09-28 01:25:55 +00:00
thorpej
9cc29ba9a4 Oops, RCS ID. 2001-09-28 01:24:44 +00:00
thorpej
b6279c024f File describing the ACPICA and how we glue it to NetBSD. 2001-09-28 01:24:21 +00:00
thorpej
5f7bd77097 OS Services Layer to glue the Intel ACPICA to NetBSD. 2001-09-28 01:06:58 +00:00
thorpej
6a930624d7 Let <machine/cpufunc.h> provide wbinvd() on NetBSD. 2001-09-28 00:46:50 +00:00
thorpej
c3e86966fb We've flattened out the directory heirarchy -- acenv.h is not found
in platform/ in our tree.
2001-09-28 00:43:40 +00:00
thorpej
415b593488 NetBSD "environment" header for ACPICA. 2001-09-28 00:40:54 +00:00
thorpej
3926b0395b Import the 20010831 snapshot of the Intel ACPI Component Architecture
ACPI reference implementation.
2001-09-27 23:11:59 +00:00
ad
404706846e Make firmware updates work with dpti. 2001-09-27 18:43:37 +00:00
mjacob
87a8b82ae9 Restore previous functionality- in scsipi_periph_timed_thaw check to
make sure the completion thread is running before you try to schedule
it.

Fixes port-i386/14013
2001-09-27 18:11:06 +00:00
mjacob
79d74959da Restore previous definitions. 2001-09-27 18:07:51 +00:00
tsutsui
3339a3e525 Remove iha_minphys() and use minphys() instead. 2001-09-27 15:26:57 +00:00
tsutsui
19e9d87b56 Include uvm/uvm_extern.h for PAGE_SIZE. 2001-09-27 15:12:30 +00:00
tsutsui
883a221861 Adjust IHA_MAX_SG_ENTRIES since fragments of DMA buffer are not
more than (MAXPHYS / PAGE_SIZE + 1).
2001-09-27 15:11:34 +00:00
itojun
646869b6cd regen 2001-09-27 07:10:37 +00:00
itojun
2a47bfbf34 add 4DWAVE and SiS sound devices. 2001-09-27 07:09:27 +00:00
thorpej
a7eb08e847 "cms" is not needs-flag 2001-09-26 21:49:09 +00:00
thorpej
55d06660bb "aria" does not needs-flag 2001-09-26 21:40:07 +00:00
eeh
98ecb5b215 getprop* -> PROM_getprop* 2001-09-26 20:53:05 +00:00
matthias
da7395fac9 wskbd_rawinput: check sc->sc_displaydv before calling wsdisplay_kbdinput. 2001-09-26 15:13:23 +00:00
chris
b08ac48955 Move the call to the xi_pcmcia_identify to before the first use of sc->sc_flags.
Doesn't fix my problem with auto negotiate, but it might help others.
2001-09-26 09:01:30 +00:00
oster
d7a81df519 RF_DEV2RAIDID isn't used anywhere anymore. Bye bye. 2001-09-26 03:01:19 +00:00
oster
de43684ab7 - rf_types.h doesn't really need to pull in rf_archs.h
- for *.c, don't rely on rf_types.h to pull in rf_archs.h
2001-09-26 02:52:57 +00:00
thorpej
1eb0dacf81 IRQUNK -> ISACF_IRQ_DEFAULT 2001-09-26 01:30:58 +00:00
thorpej
0cf4cbfa39 Use ISACF_*_DEFAULT rather than *UNK. 2001-09-26 01:17:16 +00:00
jdolecek
de311f11c3 Match the Diamon Rio800. Reported working by Chris Lloyd in kern/14064. 2001-09-25 21:08:44 +00:00
oster
e475673b85 Nuke an unused typedef. 2001-09-25 02:56:13 +00:00
eeh
766a9b8c9c Change bus_space_mmap() signature to the official one. 2001-09-24 23:49:31 +00:00
bouyer
92aaf348cf Ali M5229 IDE controllers: tweak the rigth 0x79 register (the one from the
pci/isa bridge, not the one from the IDE controller).
2001-09-24 20:03:47 +00:00
itohy
0f210a885d Add simple boundary check on CIS parsing.
I have a weird PC-card-style appliance (I'm not sure I may call it a PC card)
whose ``CIS'' reads zeros forever, which caused kernel panic.

For your interest, it is a cooling fan to be inserted to a PC card slot.
2001-09-24 14:19:10 +00:00
eeh
1e7d8c3a11 Print out device details. 2001-09-24 04:39:40 +00:00
chs
fd3414abea fix typo in previous. 2001-09-24 01:29:06 +00:00
explorer
56b9583089 Implement two major items:
(1) Add an IOCTL to tell the Lucent based cards how often to
	    do an access point scan.  These results are returned by
	    calling another IOCTL to get the most recent scan data.

	    This function works with prism2 cards as well, but the
	    data is returned in a different format, or perhaps it is
	    data only for the closest access point.

	(2) For prism2 cards, add the ability to put it into LAN monitor
	    mode, where (via BPF) all packets can be received.  This
	    mode works best with "wiconfig wi0 -p 3 -f ?" to put the
	    card into pseudo-IBSS mode (to keep it from channel-hopping
	    and scanning for access points) and to set the frequency of
	    the AP you wish to monitor.

	    The returned data has a partial wi_frame header (down to the
	    wi_dat_len field) followed by the raw data of the packet.
	    I have and will put up on http://www.flame.org/NetBSD/wireless/
	    some simple utilities which do some perhaps interesting things,
	    like scan for access points, capture packets, etc.
2001-09-22 17:22:25 +00:00
ad
5ed7f8b717 Save some info about the board for dpti. 2001-09-22 13:05:36 +00:00
elric
b537810471 Fixed AHC_DEBUG on 64 bit arches with a bit of casting in a printf.
Added a message to help me debug a problem that I'm having.  The
printf is protected by AHC_DEBUG.
2001-09-21 23:54:57 +00:00
ad
fcf00dcc00 Add `dpti', which is an I2O vendor extension implementing the DPT/Adaptec
control interface. This makes it possible to run the Linux versions of
dptmgr, raidutil, dptelog and other tools under NetBSD.
2001-09-21 23:44:19 +00:00
fvdl
000902fbf6 Unfortunately, the previous change seems to make most (all?) configurations
using the ahc driver hang when probing scsi devices. The problem may be in
the ahc driver and not in this change, but back it out until this has been
fixed anyway.
2001-09-21 13:54:47 +00:00
ad
96e145132b Add gem. 2001-09-20 22:17:25 +00:00
ad
ec1f68e931 Use bus_dma to get temporary I/O buffers. 2001-09-20 22:09:44 +00:00
fvdl
4d0be45902 Add message to explain failure if the internal i810 config registers
weren't found.
2001-09-20 20:00:16 +00:00
onoe
b698d56d3c Move IBSS creation stuff from awi to ieee80211. 2001-09-20 13:54:43 +00:00
bouyer
dfa5bf68d9 - Allocate control structures at attach time rather than at init time.
Avoids using bus_dmamem_alloc/bus_dmamem_map at interrupt time.
  Should fix PRs kern/13924 and kern/13979 from dive@endersgame.net
- while I'm there convert to use ether_ioctl.
2001-09-20 10:04:10 +00:00
thorpej
b28dc27296 Define the DECstation framebuffer types, from pmax/include/fbio.h.
XXX Yes, this is disgusting, but it's also pretty stupid to have
what amounts to essentially the same include file duplicated in
so many places.
2001-09-19 18:29:03 +00:00
ad
350d86c879 Save the new keyclick volume for later retrieval. 2001-09-19 12:42:11 +00:00
onoe
aebd449baa Fix for FH infrastructure mode.
XXX: FH chanset should be calculated by FH hop pattern, but BayStack 650 AP
     always specify chanset to fixed value 1.  The previous code try to this
     hack into awi driver, but it is insufficient because the chanset value
     in awi driver may change while scan and it may be different from the
     value in receiving beacon/probe-response.  So we save encoded FH chanset
     into channel in 802.11 common bss information for now.
2001-09-19 04:09:54 +00:00
ad
21787ea4c6 Get/set keyclick volume. 2001-09-18 23:25:25 +00:00
onoe
8496cf2bd8 Fix register offset of SYNC_SET for FH phy. 2001-09-18 23:19:08 +00:00
mjacob
849eac52f2 Rather than run a periph's queue from scsipi_periph_timed_thaw which is
called via a callout, kick the completion thread to run it for us (uses
a new flag, SCSIPI_CHAN_KICK).

If we've received BUSY status and we haven't started the completion
thread yet, don't freeze do a callout to scsipi_periph_timed_thaw which
then will try and kick the completion thread- instead treat the command
as if it were a polled command and just call delay for 1 second.

If DIAGNOSTIC is defined, and the periph qfreeze count is less than
zero, panic because some HBA has corrupted the periph structure's
accounting.
2001-09-18 20:20:26 +00:00
ad
4824a8d9d9 Beef up the stic X interface, and tighten a few screws here and there. 2001-09-18 19:51:23 +00:00
wiz
9fa0b17629 Give initiali[sz]e all the "i"s it deserves. 2001-09-18 18:15:49 +00:00
tsutsui
7fce932a4d Fix typo in printf format. 2001-09-18 16:11:00 +00:00
simonb
2d06de8eb9 General cleanup: ANSIfy, white-space, remove unused #includes.
XXX: should be moved to arch/pmax/ibus - this is pmax specific.
2001-09-18 12:46:33 +00:00
ichiro
7f43a1ffd3 regen 2001-09-18 11:08:05 +00:00
ichiro
92dc2bcc76 fixed typo 2001-09-18 11:07:33 +00:00
onoe
6a617566bc Move IEEE 802.11 MAC management functions from awi driver to
if_ieee80211subr.c, which can be shared between any IEEE 802.11
drivers.
However, most of current working IEEE 802.11b wireless LAN cards
have rich firmware and we cannot have a control to management frames
for such cards.

IBSS creation is now supported for the awi driver.
2001-09-18 09:09:57 +00:00
chs
266b4e032c in wdc_get_xfer(), avoid crashing if pool_get() fails. 2001-09-18 05:32:14 +00:00
ichiro
5ce8138011 add entry "GEMTEK CF WaveLAN Card" 2001-09-17 09:21:58 +00:00
ichiro
6d3a2e129f regen 2001-09-17 09:15:12 +00:00
ichiro
2c089df344 add product
GEMTEK CF-size WaveLAN Card based Intersil Prism2.5 Eval-Card
2001-09-17 09:07:53 +00:00
ichiro
0391dbdcec regen 2001-09-17 07:45:00 +00:00
ichiro
a700fb7088 add product
Symbol Spectrum24 LA4100 Series CF-size WaveLAN card
2001-09-17 07:44:33 +00:00
briggs
5301d28a1c Patch to handle odd behavior from exar ST16C1550 UART. It does not set
IIR_NOPEND if the TXRDY condition is true.  Apparently, other chips do
not take TXRDY into account in the IIR_NOPEND case.

Also remove useless assignment (iir = IIR_NOPEND;) in one case.

No response from patch posted on tech-kern 29Aug2001.
2001-09-17 02:47:13 +00:00
thorpej
75fc05bc1e agp_generic_bind_memory(): Don't return NULL if we can't malloc
memory, return ENOMEM.
2001-09-16 18:33:08 +00:00
yamt
4242cee2bd make ugen use updated frlengths. 2001-09-16 18:06:32 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
manu
a7455445c4 Added the clockctl device 2001-09-16 07:20:29 +00:00
manu
5a8892e22d This is the clockctl pseudodevice. It gives non root users access to root-only
time-related system calls through ioctls. For instance, if user daemon is able
to write to /dev/clockctl, then it is able to use the CLOCKCTL_SETTIMEOFDAY
ioctl on it, which will be equivalent to a settimeofday.
Approved by Christos
2001-09-16 06:53:54 +00:00
thorpej
fe8546c37d AGP registers are in memory space on the AMD-751. 2001-09-16 03:42:12 +00:00
eeh
345c4a7b0d Driver for Sun GEM gigabit ethernet, Sun ERI 10/100, and Apple GMAC. 2001-09-16 00:11:41 +00:00
chs
64c6d1d2dc a whole bunch of changes to improve performance and robustness under load:
- remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.
2001-09-15 20:36:31 +00:00
thorpej
02951c2ac6 agpopen(): check for NULL softc before dereferencing it. 2001-09-15 18:03:35 +00:00
yamt
1f460cfc38 make it compile when defined(USB_DEBUG)&&defined(SCSIPI_DEBUG)&&!defined(SCSIDEBUG) 2001-09-15 16:47:41 +00:00
yamt
46f9dd9228 correct debug messages. 2001-09-15 16:16:27 +00:00
uch
17d54b69e0 remove unused font_clB8x8_data[]. 2001-09-15 15:27:59 +00:00
chris
b9335fd2c8 Regen 2001-09-15 13:13:53 +00:00
chris
f80b0e499b Add voodoo 4/5 entry for 3DFX. 2001-09-15 13:11:42 +00:00
drochner
9ac7c1121f normalize error message if agp_map_aperture() fails 2001-09-15 13:01:44 +00:00
thorpej
e3d4f375aa Give each AGP controller its own attribute, and let the "agpbus"
device (rather, the device that carries that attribute) also
carry one or more attributes indicating which type of controller
it might be.

This will allow systems that might have AGP, but would never have
e.g. an Intel PCI-Host bridge, to trim out code that won't be used.
2001-09-15 01:32:10 +00:00
thorpej
8f077d92cc Move the AGP device declaration stuff into files.agp. 2001-09-15 01:10:09 +00:00
thorpej
c1e6d1c91f Use bus_space_mmap() to mmap the aperture. 2001-09-15 00:52:15 +00:00
thorpej
0019ea5ce6 Clean up the AGP match/attach code somewhat. 2001-09-15 00:24:59 +00:00
uch
1877683f2b HITACHI PERSONA keymap. patch by KIYOHARA Takashi. 2001-09-14 17:22:52 +00:00
thorpej
915af95ac0 Gather information about the mappable regions of the card at
attach time.  Allow access to these regions in vga_pci_mmap().

Note: we also have to allow access to the legacy ISA "hole" in
vga_pci_mmap(), since the X server needs to be able to read
the legacy BIOS on many cards.

XXX Need to address the PCI Expansion ROM.

Based on changes from Simon Burge <simonb@wasabisystems.com>.
2001-09-14 16:54:20 +00:00
martin
6f67510515 Give the cards a bit more time for initialization (closes PR 13947)
and add product IDs for two 3C509 TP variants (closes PR 13948).
Both changes from Christian Groessler.
2001-09-14 13:46:42 +00:00
martin
ffd70ffedb Add product IDs for 3com 3C509 TP cards.
From Christian Groessler in PR 13948.
2001-09-14 13:41:29 +00:00
drochner
9771bc6656 -plug some resource leaks
-don't clear memory ranges on "release"

The X server survives a screen switch now.
2001-09-14 12:09:14 +00:00
drochner
f53f5d923d make the hardware cursor work 2001-09-14 12:05:03 +00:00
ad
6e9cae3be0 Zero out uninitalized fields in the freshly allocated zs_chanstate. 2001-09-14 11:58:39 +00:00
thorpej
5b09c93a50 Add ioctl and mmap entry points for PCI VGA. ioctl provides
passthrough for PCI config space read/write.  mmap currently
returns error (to be addressed in a future revision).
2001-09-14 06:46:08 +00:00
simonb
999cfd0c61 Fix tyop. 2001-09-14 06:09:42 +00:00
thorpej
b9fffe1967 Allow bus front-end to provide both ioctl and mmap entry points,
and also the wsdisplay type.

Based on changes from Simon Burge <simonb@wasabisystems.com>.
2001-09-14 01:10:11 +00:00
thorpej
be6841f414 Oops, didn't intend to enable pcimmap() yet. 2001-09-13 22:00:58 +00:00
thorpej
76aa38a6aa Install pcidevs.h, pcidevs_data.h, pciio.h, pcireg.h. 2001-09-13 21:52:30 +00:00
thorpej
23763f2f28 Add an ioctl interface to the PCI bus. Add ioctls to read/write
PCI configuration space registers, and to fetch bus info.
2001-09-13 21:49:40 +00:00
thorpej
829747c527 Allow this file to be used in userspace, as well. 2001-09-13 21:42:57 +00:00
thorpej
a3dfe45752 ANSI'ify. 2001-09-13 18:25:45 +00:00
drochner
875a8b9cee -allocate DMA maps as large as necessary in the worst case
-Add a really bad hack: The X server (4.1.0 afaict) appearently overwrites
 the PGTBL_CTL which contains the base address of the pseudo-GATT.
 Restore the original value if we notice this happened.
The X server works now, but only with soft cursor.
2001-09-13 16:18:53 +00:00
drochner
e52f69d4e2 -allocate DMA maps as large as necessary in the worst case
-allocate space for DMA segments as much as necessary
-fix format warnings in a debug output
-don't try to access AGP capability stuff in the PCI config header
 if it doesn't exist (as on the i810)
2001-09-13 16:14:16 +00:00
tshiozak
1a1c09790a add power hook to PS/2 mouse driver; some mobile PCs has
unstable pointer, it arbitrarily awake the machine from standby state.
to prevent it, we need to stop the mouse controller before sleeping.
2001-09-13 14:16:12 +00:00
enami
750c07de04 Pass the correct pointer to atapibusprint(). 2001-09-13 06:27:23 +00:00
eeh
0d30ddb30a Properly initialize sc->sc_bustag and sc->sc_dmatag; 2001-09-12 20:09:53 +00:00
eeh
317da99cfe Properly initialize sc->sc_bustag. 2001-09-12 19:35:35 +00:00
pk
88dc67b3e1 The `ESC' DMA chip must be reset before we can access the esp registers. 2001-09-11 10:50:52 +00:00
pk
828bc6ebb3 Move some logic from dma_start() to dma_setup(); inspired by the sun3 si version. 2001-09-11 07:03:56 +00:00
augustss
8a0aea16c1 Don't go top mode OPERATIONAL (before reset) on startup even if BIOS claims to
have initialized the controller.
2001-09-11 07:00:19 +00:00
fvdl
71fb506f0b Fix i810/other intel chipsets attach mishap. 2001-09-11 06:51:47 +00:00
fvdl
6b43a561dd Don't forget to install the pointer to the chip-specific chipc. 2001-09-11 06:30:38 +00:00
bjh21
768c591f5d Add eco and eca. 2001-09-10 23:49:21 +00:00
bjh21
e416135347 Driver for the standard Archimedes Econet interface, based around the
Motorola 6854 ADLC.
2001-09-10 23:41:48 +00:00
eeh
7c233db184 Regen. 2001-09-10 15:09:48 +00:00
eeh
16d8807932 Add Sun GEM gigabit network card. 2001-09-10 15:07:50 +00:00
fvdl
377864623b Fix reversed if condition in agp_i810_vgamatch. 2001-09-10 12:51:42 +00:00