Commit Graph

2268 Commits

Author SHA1 Message Date
augustss 7ae1e6394f Add some data structures to keep enable finding companion controllers
for EHCI.
2001-11-06 03:17:36 +00:00
tsutsui 3b0f229027 Fix a couple of bugs:
- make sure to allocate memory for sc_tempsrb properly.
 - correct links of SRB queue in trm_link_srb().
Now trm driver works on arc.
2001-11-04 17:17:22 +00:00
itohy bd78bc67aa Re-implement the mixer
o  Implement SPDIF selection/monitoring function.
    Now, say, playback to both analog output and SPDIF is possible.

 o  Implement support of AUX input, MIC preamp and MIC recording gain.

 o  L-R selection of record source doesn't seem to work on cmpci.
    Therefore, the *.swap mixer functions are and deleted.

 o  Following SB mixer registers don't exist on cmpci, and they are removed.
	input gain, output gain, AGC, equalization (bass, treble)

 o  Other mixer changes, including
	inputs.XXX.mute -> (deleted)
	outputs.XXX.mute -> inputs.XXX.mute
	inputs.pc_speaker -> inputs.speaker
	spdif.* -> reorganized to spdif.input.*, spdif.output.*

 o  Current status:
      I have tested these and confirmed to work fine.
	- Output and recording from Line-in, AUX, CD and MIC analog inputs,
	- Output and recording from FM synthesizer,
	- Output from PC speaker input,
	- Output wave playback.
	- SPDIF (44.1kHz) input selection (#1, #2 (6ch version only),
	  wave to spdin), phase selection, monitoring and recording,
	- SPDIF (44.1kHz) playback, through (SPDIF in to SPDIF out)
	  and monitoring.

      I haven't tested these but may work.
	- SPDIF 48kHz input and output,
	- Full-duplex operation,
	- Recording wave output.

      I don't think these are working.
	- Legacy (wave + FM synthesizer) to SPDIF output (and the monitoring),
	- Exchanging front and rear outputs,
	- Surround.

      These are not implemented.
	- 4ch / 6ch support,
	- Joystick port support.
2001-11-04 06:57:40 +00:00
tsutsui d3701fc18a Add a driver for the Tekram DC-395U/UW/F and DC-315/U SCSI host adapters,
which have the Tekram TRM-S1040 ASIC.
This driver is written by Rui-Xiang Guo <rxg@ms25.url.com.tw>,
and a number of cosmetic changes by me.
Tested on i386 by the author, and on macppc and sparc64 by me.

XXX On arc, kernel got panic in ltsleep() called from scsipi_execute_xs(),
XXX but I'm not sure what is wrong...
2001-11-03 17:01:16 +00:00
itojun 9d7baa72da recognize fxp on IBM thinkpad T23. from akimichi@wide.ad.jp 2001-11-02 03:40:47 +00:00
haya 2c903bf2c0 Add PCI power management control. If the power state of a bridge is
not D0 at device attaching or resuming, set the bridge D0 mode.
2001-11-02 03:32:33 +00:00
uch 6195437083 missing NBPFILTER > 0 2001-11-01 17:32:33 +00:00
augustss 53adfd4111 Add Via KT266 as an ATA100 controller. 2001-10-26 10:38:12 +00:00
augustss d148d21082 Regen. 2001-10-25 11:57:44 +00:00
augustss bee35a9613 Add some VIA KT266 numbers. 2001-10-25 11:57:15 +00:00
augustss 61406d282b Force BIOS out of the game by setting the LEGSUP register to its default
value.
2001-10-25 01:46:26 +00:00
thorpej 9b17b651ee Regen; Add product IDs for the Powerhouse Systems PowerPro and PowerTop
PowerPC system controllers.
2001-10-24 00:19:21 +00:00
thorpej 7bbddedbbd Add product IDs for the Powerhouse Systems PowerPro and PowerTop
PowerPC system controllers.
2001-10-24 00:18:49 +00:00
thorpej d9756b0f59 Regen; more Intel Gig-E fixup, and add Intel i82544 IDs. 2001-10-24 00:14:47 +00:00
thorpej 1d548d2778 More Intel Gig-E ID fixups, and add Intel i82544 Gig-E IDs. 2001-10-24 00:13:41 +00:00
jdolecek 7a27cbb4a3 De-__P()ify. Suggested by Lennart Augustsson. 2001-10-22 20:31:26 +00:00
thorpej 5f6fd54ec7 Add a config flag (0x02) that can force DMA to be *disabled* on
chipsets for which it would otherwise be enabled by default.
2001-10-21 18:55:14 +00:00
thorpej 132fdb30e6 Make the various timing, etc. tables const, and add the __unused__
attribute to them, just in case something other than the pciide driver
proper needs to pull in the header.
2001-10-21 18:49:19 +00:00
jdolecek d9e921bd84 Fix obviously wrong printf() format in pci_intr_establish() failure case.
Pointed out by Chuck Silvers.
XXX This has compiled without a warning for me - what's up?

Add sc->sc_dev.dv_xname in another failure printf()
2001-10-18 19:15:38 +00:00
wiz 7c90b959da Fix check in device open.
Patch by KUROSAWA Takahiro in kern/14289.
2001-10-18 16:08:05 +00:00
thorpej 62577b1c53 Remove more cruft left over from copying bits of other drivers. 2001-10-18 15:09:15 +00:00
thorpej dcd30fd216 Add a missing return statement in an error case, and g/c some
cruft that's not relevant in the PCI world.
2001-10-18 06:29:55 +00:00
thorpej c616253896 Remove some more stuff left over from copying bits of the HME driver. 2001-10-18 06:28:17 +00:00
thorpej d44a5ae87c Remove some unneeded stuff from the gem_pci_softc. 2001-10-18 06:14:33 +00:00
thorpej c559c94a45 Add goo to fetch the MAC address from OpenFirmware on the macppc
port.  Copied from the macppc "gmac" driver, but otherwise untested.
2001-10-18 03:55:07 +00:00
thorpej 285d37822b - The GEM registers are always memory type registers. Don't use a
broken hueristic to determine memory vs. i/o (one should never make
  an assumption that the bus_space_tag_t is a pointer, as this code
  did).
- Fix the "can't map registers" error message.
- Garbage-collect some code that is not relevant to the GEM (which
  was already #if 0'd out).
- Cluster all the SPARC-specific code into one place (will be
  replaced with Properties once that is fleshed out).
2001-10-18 03:48:48 +00:00
thorpej 397a84f51a Fix the semantics of __PCI_DEV_FUNCORDER so that they're actually useful:
If __PCI_DEV_FUNCORDER is defined, don't do the song-and-dance to check if
a device is multi-function; machdep code is going to tell us exactly which
functions to probe.

Note this required changing how pci_func_devorder() works in the
sparc64 PCI machdep code; now the "curnode" is assumed to point
to the bus, rather than some function (typically 0) on the device,
just as pci_bus_devorder() makes that assumption.

All this should allow the PCI code to actually locate the second
HME device on a Sun Netra t1, which is at 3,1 -- previously, the
PCI code would have missed it because there is no device at 3,0.

(Sun deserves a brick to the head for this one -- this seems clearly
out of line with the PCI spec.)
2001-10-17 22:16:41 +00:00
jdolecek d4df209cbd Add driver for Creative Labs SBLive! EMU10000, possibly also PCI512.
Written by Yannick Montulet (thanks!), with only couple minor touches by me.
2001-10-17 18:39:41 +00:00
haya 5f75bfa4ba Move some chip initialise code into pccbb_chipinit() function. 2001-10-17 10:25:51 +00:00
tron b7ca23147b Add UDMA/100 support for SiS chipsets 645, 650 and 730. 2001-10-16 08:22:50 +00:00
tron 5858458732 Regen. 2001-10-16 08:15:01 +00:00
tron 7c4f946401 Add host bridges of SiS 645, 650 and 730 chipsets. 2001-10-16 08:14:15 +00:00
tron 40dc031852 Add missing timings for Ultra DMA modes 3 to 5 on SiS hostadapters.
Problem pointed out by IWAMOTO Toshihiro on "tech-kern@netbsd.org".
2001-10-16 08:10:24 +00:00
tron 1e022c27b4 Use UDMA/100 on SiS 735 chipset. 2001-10-14 11:21:10 +00:00
ichiro cbcfff63ec Add Intersil Prism2.5 Mini-PCI wavelan. 2001-10-13 15:00:23 +00:00
ichiro c0e7956031 regen. 2001-10-13 07:44:21 +00:00
ichiro 8afd8ee7a9 add vendor & product ID
Intersil PRISM2.5 Mini-PCI WLAN
2001-10-13 07:43:42 +00:00
tron eea6d83f4b Regen. 2001-10-11 14:31:58 +00:00
tron fa5ea802e9 Add host bridge of the SiS 735 chipset. 2001-10-11 14:30:21 +00:00
ad 08632b145a Back out previous - it causes panics. 2001-10-10 09:33:36 +00:00
mjacob c0018ebdfe The flow control registers are 16 bits wide, not 32. 2001-10-10 03:41:24 +00:00
mjacob daf0329c3c Respect QLogic's errata- read BIU_ISR even on the 2300
to see if there's an interrupt (avoids PCI parity errors
which can occur on the 2312 if you access some registers
from the host at the same time the RISC on the 2312 is
accessing them).
2001-10-06 20:33:24 +00:00
thorpej 01b2f9b5c4 Remove and unnecessary cast, and avoid a memory leak in the event
allocation of the GATT fails.
2001-10-06 02:48:50 +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
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
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
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
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