Commit Graph

4389 Commits

Author SHA1 Message Date
martin 97a0f9b3ed From Michael Lorenz: more cleanup and various bugfixes, support
for WSDISPLAYIO_GETWSCHAR and WSDISPLAYIO_PUTWSCHAR ioctls.
2005-02-25 16:00:58 +00:00
martin 83fb9dbd1b Fix the size of psc_regs (0x3c >> 2 is the biggest index used to access
it now, so pick 0x40 >> 2). Fixes "Bug 6", reported by Ted Unangst on
tech-kern.
2005-02-24 08:04:02 +00:00
yamt 8e9a1567ec re_pci_probe: don't use i/o space unless RE_USEIOSPACE. 2005-02-23 09:18:46 +00:00
thorpej 2f8e8079d1 Define M_CSUM_DATA_IPv4_IPHL() and M_CSUM_DATA_IPv4_OFFSET() macros
to extract data from csum_data, rather than just open-coding it.
2005-02-21 02:12:48 +00:00
thorpej df9803ce96 Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding.  Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes.  Place items described
by the SCSI Primary Commands document into scsi_spc.h.
2005-02-21 00:29:06 +00:00
heas ace2071bfa Add sysctl node hw.tweN.driver_version whose value is FreeBSD's driver version
number for now.  This is used by 3ware's FreeBSD version of their CLI to find
controllers and check the driver version.
2005-02-20 19:01:47 +00:00
jdolecek 81abc346eb Add device driver support for the VIA Networking Technologies VT6122
gigabit ethernet chip and integrated 10/100/1000 copper PHY.

Obtained from: FreeBSD
2005-02-20 18:34:33 +00:00
jdolecek d39b670320 regen: change the VIATECH VT61XX to VT612X 2005-02-20 18:07:29 +00:00
jdolecek 19501c2f29 change the VIATECH VT61XX to VT612X 2005-02-20 18:06:17 +00:00
jdolecek 2a0d290c56 use VLAN_* macros for VLAN tag extraction/addition 2005-02-20 15:56:03 +00:00
jdolecek 2bba43d247 use VLAN_* macros for VLAN tag extraction/addition
XXX the HW VLAN tagging code stays disabled, same as before
2005-02-20 15:55:54 +00:00
jdolecek dc8941eb32 use VLAN_* macros for VLAN tag extraction/addition
also restructure and simplify input VLAN ID code handling somewhat, to not use
local have_vlan/vlan_tag variables, and use the appropriate cur_rx condition
on the one place where it's needed
2005-02-20 15:48:35 +00:00
thorpej 846027d4f3 Re-apply changes that were mistakenly lost by the previous revision. 2005-02-18 05:58:31 +00:00
briggs b7b84489c8 Update the interrupt mitigation support.
Actually initialize the interrupt throttling register.
Actually initialize the tx and tx absolute interrupt delay timer regs.
Update default values for the rx and tx delay timers.
Inspired by Zdenek Salvet in PR kern/29373.
2005-02-18 04:32:35 +00:00
heas f5a6c8bf2f Adjust csum_data usage; mask off the high 16 bits for L4 header stuff offset
and make use of the L3 header length from the high 16 bits such that an
m_pullup is no londer necessary.
2005-02-18 01:21:02 +00:00
heas d6e174eefd Adjust csum_data usage; mask off the high 16 bits. 2005-02-18 01:10:44 +00:00
briggs 10a93c41d6 Allow MAXPHYS-sized instead of IDEDMA_BYTE_COUNT_MAX-sized transfers
to be described by a transfer table.
2005-02-15 12:20:37 +00:00
lukem b088f0cb30 Add some more stripe sizes observed in the field.
Add "JBOD" to twe_table_unittype[].
2005-02-15 05:56:34 +00:00
briggs f5218aad0f Move the definition of NIDEDMA_TABLES from pciidereg.h to be closer to
its only user in pciide_common.c.  Also redefine NIDEDMA_TABLES to match
the max DMA transfer size specified in the call to bus_dmamap_create()
(IDEDMA_BYTE_COUNT_MAX instead of MAXPHYS).
The macro is also redefined to handle devices that have a PAGE_SIZE greater
than sc_dma_maxsegsz (buggy revision of satalink 3112 on ibm4xx).
2005-02-15 03:18:22 +00:00
fredb e4ad980fcd "output.source" on the Ensoniq 1371 really should be "input.source". Making
it so lets the audio(4) interface -- play.port and play.gain -- attach
properly.  Analysis and patch provided by Joachim Kuebart in PR kern/29178.
2005-02-13 23:58:38 +00:00
jdolecek 739cd954dd constify 2005-02-13 09:10:54 +00:00
rearnsha d0a75ee514 Change PCIIDE_I31244_ENABLEDMA to PCIIDE_I31244_DISABLEDMA as
suggested by briggs.  Put the flag in opt_pciide.h.
2005-02-12 10:20:50 +00:00
rearnsha dfcdd57e20 Add support for the Artisea device operating in DPA mode.
Approved by briggs.
2005-02-11 21:12:32 +00:00
simonb 3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
briggs fb9f110c8c Use aprint_*() instead of printf() at attach time. 2005-02-08 05:16:17 +00:00
cube d16fd94009 Initialize 'error' in all cases in ioctl handler, otherwise it doesn't
compile (and of course might return garbage).  [hi kim!]
2005-02-06 08:52:08 +00:00
kim f045f7096d If the interface is up and running, only modify the receive filter
when setting promiscuous or debug mode.  This avoids resetting the
chip unnecessarily.

Fixes PR kern/29126.
2005-02-06 03:15:14 +00:00
perry 18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
christos ba2396e33b Regen 2005-02-02 13:26:28 +00:00
christos 34508c6918 PR/29196: Robert Elz: Add support for Broadcom BCM4401-B0 ethernet 2005-02-02 13:26:06 +00:00
abs f29f37c830 Regen to pick up corrected code for VIA VT6421 2005-02-02 11:20:40 +00:00
abs 0d94353073 Reminder not to trust cheap no-name packaging. VIA product 0x3249 is
a VT642*1* not VT642. Also add to list in viaide manpage and note
that drives need to be configured into RAID/JOBS sets via its BIOS.
http://www.via.com.tw/en/products/peripherals/serial-ata_raid/vt6421/
2005-02-02 11:19:49 +00:00
gson 971beb8edb Generate an interrupt only after processing all the samples in a block
rather than at the time of the last sample, to eliminate a click at the
end of each block when recording.  Fixes kern/18066.
2005-02-02 10:34:12 +00:00
abs d3852ae541 regen to pick up the 'VT642 SATA RAID Controller'. 2005-02-01 18:21:58 +00:00
abs 6660565bb0 Add 'VT642 SATA RAID Controller'. It looks like a viaide, it smells
like a viaide... but you can only address the drives once you have
put two or more of them into a RAID or JBOD.
2005-02-01 18:21:14 +00:00
thorpej 0fa67488f7 - Fix some logic errors in multi-descriptor packet reception case for
DP83820.
- Eliminate use of M_HASFCS.
2005-01-30 18:56:34 +00:00
thorpej 505f0442e5 Eliminate use of M_HASFCS. 2005-01-30 17:33:48 +00:00
jdolecek f9b584bd58 match nForce2 Ultra 400 audio 2005-01-27 21:49:29 +00:00
jdolecek 7f0a422006 regen: add id for nForce2 Ultra 400 audio 2005-01-27 21:48:37 +00:00
jdolecek 0716a9ca67 add id for nForce2 Ultra 400 audio 2005-01-27 21:48:15 +00:00
kent 0e68407cf6 support nForce 4 2005-01-27 13:35:05 +00:00
kent 75432eafa2 support for nForce 4 PATA and SATA 2005-01-27 13:34:32 +00:00
kent 44200be30d regenerate for nForce 4 devices 2005-01-27 13:33:36 +00:00
kent ab57a51809 add some nForce 4 devices 2005-01-27 13:31:45 +00:00
scw 1464f79e43 In vr_start(), don't forget to free the new mbuf if the second
bus_dmamap_load_mbuf() fails.
2005-01-27 11:58:01 +00:00
jmcneill fac3e15af3 Fix typo. 2005-01-27 03:03:33 +00:00
jmcneill 7f3681fe2b Don't restore PCI configuration state if the chip isn't in D0, from
Kentaro A. Kurahone.
2005-01-27 02:58:52 +00:00
jmcneill 27d1abf7f8 Capture PCI configuration state on suspend and restore it on resume, from
Kentaro A. Kurahone.
2005-01-27 02:44:59 +00:00
jmcneill 73f985e393 Add agp_i810 powerhook, from Kentaro A. Kurahone 2005-01-27 02:43:42 +00:00
jmcneill 41a62b176d Add rtk_pci powerhook, from Kentaro A. Kurahone 2005-01-27 02:42:35 +00:00
jmcneill 6a3e1ea6a4 Missed a break in the powerhook (shouldn't matter functionally, but
fix anyway for correctness).
2005-01-26 22:15:26 +00:00
jmcneill f9fc6336b1 Add pci_conf_{capture,restore} to auich(4) powerhook 2005-01-26 21:53:42 +00:00
jmcneill 0c537484ca Add powerhook to bge(4) 2005-01-26 21:52:47 +00:00
jmcneill 5a6c12cd3b Add powerhooks for PIIX IDE driver. 2005-01-26 21:50:31 +00:00
jmcneill 9c40186bce Add support functions for capturing and restoring PCI configuration
registers for power management code.
2005-01-26 21:49:00 +00:00
kleink 9ce91047cd Clean up the array of audio_formats supported. 2005-01-26 21:28:55 +00:00
fvdl 5ccd9c2654 Don't print a message when there's no interrupt to be handled, since this
can happen when one is shared. Also, don't claim it in that case.

Make some printfs more consistent.
2005-01-26 12:59:06 +00:00
jmmv 51b5451e34 Capture incomplete packets coming from the card, as this driver doesn't
support this feature.  This avoids multiple crashes that I've had in the
past.  Also ensure that packets are not empty when DIAGNOSTIC is set.

However, this is just another sanity check of the received packets, but
does not address the real problem.  The issue seems to be the following:
if the card receives data while doing a reset (vr_init), it later finds
a bunch of empty packets in the receive ring.

This explains the crashes I've hit: running a program which needs
promiscuous mode (dhclient) while the card was already running in
that mode (tcpdump).  In this situation, it's easy that the second
reset receives stuff from the network.

Unfortunately, I don't know why the card is producing these packets...

While here, fix a typo in a comment.
2005-01-25 17:02:09 +00:00
matt 1dfcdea23d Regen. 2005-01-25 00:55:25 +00:00
matt 2d074b9231 Add additional PCI Device IDs for ATI Radeon 9200 2005-01-25 00:55:00 +00:00
matt 027c11539b Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them. 2005-01-24 21:25:09 +00:00
dan f368e90e9b attach tl(4) as an event source to rnd(4)
patches from Sean Davis in PR/28556
(slightly modified to actually catch our own interrupts)
2005-01-23 10:53:19 +00:00
fredb 53c21c67e7 Regen. 2005-01-23 03:07:05 +00:00
fredb 18c05962e3 Recognize Belkin Gigabit Desktop Network PCI card. 2005-01-23 03:06:07 +00:00
briggs d01fdd733e Put the headers in a more standard order with machine-specific and
dev/bus-specific headers after the sys and net headers.  This allows
it to actually compile on macppc, among other things.
2005-01-22 04:34:22 +00:00
tsutsui 62b7a35d2d Unload xfer dmamap in pscsp_dma_stop(). 2005-01-21 14:37:58 +00:00
yamt a9b37be6a2 - switch to dev/rtl8169.c from pci/if_re.c.
- enable re@cardbus.
both of re@pci and re@cardbus seem to work for me.
2005-01-21 12:32:18 +00:00
dyoung a10b4b5f6b Keep a count of free transmit/command descriptors, sc->txfree.
Make the transmit section reserve one descriptor for issuing a
command at all times.  If either transmit descriptors run out, or
header/buffer software descriptors run out, set IFF_OACTIVE and
get out of ipw_start, rather than re-using a descriptor or trying
to use a NULL descriptor that comes off the front of an empty
descriptor tailqueue.

This ought to fix port-i386/27439 and kern/28683.
2005-01-19 06:00:22 +00:00
yamt 28bcd01d16 - add rcsid.
- restore Bill Paul's copyright notice.
2005-01-18 11:11:58 +00:00
tsubai fcad06a784 Regen. 2005-01-18 06:24:18 +00:00
tsubai e5b7a48413 Add some Apple devices. 2005-01-18 06:23:01 +00:00
dyoung fc524c150b Use IFQ_DEQUEUE instead of IF_DEQUEUE on if->if_snd to be consistent
with IFQ_SET_READY(&if->if_snd) elsewhere, and also to enable
ALTQ(9) on ipw(4).
2005-01-18 04:31:09 +00:00
martin ab7375f57f More changes from Michael Lorenz:
- fix a panic in mach64_alloc_screen()
 - some cleanup
 - restrict mach64_mmap() to addresses which belong to it
 - mach64_attach now prints bus addresses instead of kernel vm addresses
 - initial support for macppc
2005-01-17 22:52:46 +00:00
augustss c9d494cae1 Make it compile with debug. 2005-01-17 12:24:37 +00:00
mycroft ea0b1cb353 Just to be absolutely correct, wait an additional 1ms after the "power cycle"
event, to cover the RESET Width (Tw (RESET)).
2005-01-16 08:56:29 +00:00
mycroft b0345c674e Christos's crappy Libretto 100CT has an extremely long ramp for socket Vcc
(violating the PC Card spec), so... use the "power cycle" socket event to
determine when we've reached Vcc before proceeding, rather than using a fixed
amount of time.  This has the double advantage that it makes the card attach
time even shorter on sane systems -- the minimum is now ~38ms on my i8500
rather than 222ms.

Probably a similar change should be made to pcic, but it was hard enough
figuring out whether it would work with pccbb.  The chip specs suck.

For now, I'm leaving in a couple of additional printf()s in the hope that I
will get some interesting data from them.
2005-01-16 08:51:55 +00:00
kent 93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
skrll 4b90045498 Remove local PCI_PRODUCT defines 2005-01-15 13:27:23 +00:00
skrll fcf73d97d0 Regen. 2005-01-15 13:23:31 +00:00
skrll 26e988358c Add Intel PRO/Wireless LAN 2915ABG Mini-PCI Adapter 2005-01-15 13:21:31 +00:00
kanaoka 79c7579be2 - Make sure D0 state if device has Power Managmet capability.
- Use aprint_*.
 - Change some cosmetic.

XXX not tested.
2005-01-15 12:33:37 +00:00
jdolecek 23ddf6b52d regen: Fix Geforce 6800GT entry 2005-01-15 08:40:41 +00:00
jdolecek cd31b660cb Fix Geforce 6800GT entry 2005-01-15 08:40:07 +00:00
jdolecek 139cc687c0 regen: add bunch of NVIDIA GeForce 6800 devices 2005-01-15 08:38:19 +00:00
jdolecek 9ed9632969 add bunch of GeForce 6800 entries, from Andrew Gillham 2005-01-15 08:37:34 +00:00
jdolecek 8fe1013ea1 regen: use full 'nForce2 Ultra 400' tag for the NFORCE2_400* enties 2005-01-15 08:33:19 +00:00
jdolecek 739bcb85f8 use full 'nForce2 Ultra 400' tag for the NFORCE2_400* enties 2005-01-15 08:32:53 +00:00
jdolecek 5dc2830936 match NVIDIA nForce2 Ultra 400 IDE and Serial ATA controller; only the IDE
controller actually tested
2005-01-13 20:54:39 +00:00
jdolecek de76592011 regen: add bunch of NVIDIA nForce2 Ultra 400 chipset devices 2005-01-13 20:52:20 +00:00
jdolecek 87a7c34e2d add bunch of NVIDIA nForce2 Ultra 400 chipset devices 2005-01-13 20:51:49 +00:00
jdolecek 69d096eee2 regen: VIA Velocity 2005-01-13 18:25:49 +00:00
jdolecek 0358345ff3 add VIA Velocity ID 2005-01-13 18:25:19 +00:00
jmmv c4c2514524 Fix two typos. 2005-01-13 14:51:28 +00:00
kanaoka 3e734f8e90 - Move re_diag() from bus independend code to PCI attachment code.
XXX: I tested cardbus device,but not PCI device.
2005-01-13 14:24:24 +00:00
simonb 11152f29d3 More KNF nits. 2005-01-13 00:48:01 +00:00
kent 986f217c29 remove empty auixp_open() and auixp_close(). They are optional.
style fixes
* Don't associate a name with the types
* The function type must be declared on a line by itself
  preceding the function.
* DO NOT initialize variables in the declarations.
* No parentheses are needed around the return value.
2005-01-12 15:54:34 +00:00
reinoud 5c590de03d Update copyright messages 2005-01-12 00:28:03 +00:00
reinoud df06ca85e4 Initial commit of auixp(4) driver. It's a driver for the audio part of ATI
IXP-200 and family motherboard chips. Its functional for both recording and
playback.

Note that quadraphonic and Dolby 5.1 audio are not tested by me but ought
to work fine. I can set the number of channels etc. OK but i can't listen
to the result. Any feedback on this performance would be greatly
apreciated.
2005-01-12 00:05:43 +00:00
skrll 28528764d0 Disable the debug stuff 2005-01-11 18:54:18 +00:00
skrll 70f6d0ab0f NetBSD RCSID 2005-01-11 18:49:05 +00:00
skrll e2b108cb16 Add iwi(4). 2005-01-11 18:41:59 +00:00
skrll 60b4bf1e8d iwi(4) - Intel PRO/Wireless 2200AG/2915ABG driver.
Written by Damien Bergamini, from http://damien.bergamini.free.fr/ipw/

Ad-hoc mode and roaming are not fully implemented yet.
2005-01-11 18:24:24 +00:00
kent 23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
martin 5689de1472 Bugfixes and acceleration support.
From Michael Lorenz.
2005-01-09 16:29:20 +00:00
fredb f8f4807136 Regen. 2005-01-08 16:07:20 +00:00
fredb 99ad984e37 Recognize the Broadcom 5721 Gigabit Ethernet, as found on SuperMicro P8SCi
motherboards.
2005-01-08 16:00:03 +00:00
ginsbach 4b4b860766 regen 2005-01-08 04:58:22 +00:00
ginsbach d3c0713e84 Use the more common name, Radeon U1, for the IGP 320M. 2005-01-08 04:53:39 +00:00
he 33d45d5d2a Add recognition of LSI Logic FC919X chips, as found on
LSI Logic LSI7102XP-LC controllers.
Document FC919X and FC929X with separate entries in the man page.
2005-01-06 14:58:00 +00:00
he c4d71a859c Regen after adding entry for LSI Logic FC919X. 2005-01-06 14:56:22 +00:00
he 9d71f19b13 Add entry for LSI Logic FC919X, as found on LSI Logic LSI7102XP-LC
controllers.
2005-01-06 14:55:37 +00:00
tsutsui 2be3acc29a u_intNN_t -> uintNN_t 2005-01-02 12:03:12 +00:00
reinoud 4501e21ecb Update generated files from pcidevs (ENE update) 2004-12-27 17:21:46 +00:00
reinoud a76863e103 Addition of description for :
/* ENE Technology products */
product ENE MCR510      0x510   MCR510 PCI Memory Card Reader Controller
2004-12-27 17:20:32 +00:00
jonathan 9d44c4d9b1 Snapshot of incomplete-but-working split of re(4) driver into a
bus-independent backend, with PCI and CardBus attachment code.
The committed code has two serious bugs:

1. The driver makes no attempt to recover resources when a (Cardbus)
instance is removed; bus resources are leaked.

2. In testing with a NetGear GA-511, the Cardbus card never responded
   to a reset/wakeup if the card is powered down after attachment.
   So for now, leave cardbus instances powered up at attachment
   (insertion, or at boot if a card is already present).

That aside, it acutally works on my GA-511. Committed as-is despite
the bugs, after repeated requests to make the code available for
further testing.  Also requires sys/dev/mii/miidevs rev 1.54 -> 1.55,
and consequent regen of miidevs{,_data}.h.
2004-12-23 06:26:30 +00:00
fvdl a3cea30b50 Implement an USB memory reserve. Allocate some memory per host controller
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.

The amount can be configured as USB_MEM_RESERVE. The default value is
256k.

Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.
2004-12-21 16:41:24 +00:00
xtraeme 5f19bd62b5 regen 2004-12-18 11:55:02 +00:00
xtraeme e4e6ec7dae + ATI Technologies Radeon 9600 XT 2004-12-18 11:54:03 +00:00
heas 2239334429 Add entry for the Radeon Mobility T2. 2004-12-16 00:29:06 +00:00
cube 909aa49296 Some SiS 7012 chips come muted by default, so un-mute all SiS 7012 chips at
attach time the way Linux does it.  Reported and tested by Jonathan
Schleifer, I checked it didn't break my own 7012 device which doesn't need
that manipulation.
2004-12-11 17:48:56 +00:00
reinoud 62ff9500b4 Add ATI IXP audio controllers 2004-12-11 01:55:01 +00:00
jdarrow 90ceccfb90 Regen from pcidevs 1.672:
Add a new vendor and product ID for a cardbus NIC I've got
Belkin 0x1799
F5D6020v3 0x6020
2004-12-07 04:30:59 +00:00
jdarrow 75f0c06d8a Add a new vendor and product ID for a cardbus NIC I've got
Belkin 0x1799
F5D6020v3 0x6020
2004-12-07 04:28:07 +00:00
cube eac73e5ce7 Add config wires for ixpide(4). 2004-12-06 19:23:09 +00:00
cube 7164a75552 Add ixpide(4), a driver for the IDE controller found in the ATI IXP series
of integrated chipsets.

Documented from the Linux driver.  Tested by reinoud@, ok'd by bouyer@.
2004-12-06 19:22:24 +00:00
cube cc48293bc4 Regen (ATI IXP IDE). 2004-12-06 12:55:26 +00:00
cube 30962ed274 Add ATI IXP IDE Controller. 2004-12-06 12:54:37 +00:00
bouyer 32ea72dcdc Regen: Cleanup in VIA chipset names. From Lloyd Parkes in kern/15466. 2004-12-05 21:03:45 +00:00
bouyer 52ad9744eb Cleanup in VIA chipset names. From Lloyd Parkes in kern/15466. 2004-12-05 21:01:43 +00:00
xtraeme 347378fc9f Add ACPI mpu(4) attachment, based on lpt_acpi.c by jmcneill@,
reviewed by christos@, cube@ and martin@.

While here, remove a printf() in mpu_attach() (ic/mpu.c) to remove
an empty line in some frontends (mpu_isa.c, etc).
2004-12-02 09:50:41 +00:00
grant 9204390fe4 add iteide(4) driver for ITE8212-based IDE controllers. from
OpenBSD, ported to NetBSD by me.

ok'd by bouyer@, thorpej@.
2004-12-01 22:27:45 +00:00
grant de8ed3cda9 regen 2004-11-30 05:02:57 +00:00
grant 63ea06b029 add ITE 8212 IDE controller. 2004-11-30 05:02:37 +00:00
briggs 87dda823cf Minor tweak to add newline to an aprint_error(). 2004-11-30 03:08:27 +00:00
bouyer 9958df25fd Add RAID support, from Shin'ichiro TAYA on current-users@. 2004-11-28 14:34:31 +00:00
bouyer fe4d81db48 pdcsata(4), a driver for the Promise SATA150 (aka PDC203xx) serie of
controllers. Tested with a PDC20375 (2 SATA, one PATA) controller on sparc64.
Added to all kernel config file which had pdcide(4).
2004-11-24 20:49:17 +00:00
bouyer 489e5e5287 Move bus_dma setup out of pciide_dma_init() in a new function,
pciide_dma_dmamap_setup(), for the benefit of drivers that needs special
registers setup in dmainit().
2004-11-24 19:52:50 +00:00
briggs 83931ac682 The 8254x apparently doesn't respond well to I/O accesses at 0. Do not
attempt to map the I/O BAR if it is 0.  This will have the side-effect
of causing the wm_reset() routine to fall back to memory BAR accesses
for those chips on which it would attempt I/O BAR accesses for the reset.

Also update the comments about why we attempt the I/O BAR accesses for
the reset in favor of the memory BAR accesses.
2004-11-24 15:14:13 +00:00
thorpej 38f94c5d99 Don't bother caching the checksum context. Other drivers for this chip
don't, and it seems as though doing it may cause some problems.
2004-11-24 00:02:50 +00:00
thorpej 978214ebe8 If we have to do an m_pullup() when setting up offload parameters,
make sure that the pullup was done into trailing space at the end of
the existing first-mbuf-in-chain.  If not, log an error and drop the
packet, because the mbuf chain no longer corresponds to the DMA map,
and we are already committed to transmitting the packet.
2004-11-23 23:05:33 +00:00
thorpej 0d16742b72 Also toggle the second port's Ethernet address lsb on the WM_T_82546_3. 2004-11-23 21:36:38 +00:00
thorpej 0d68f66da9 Use log() instead of printf(). 2004-11-22 19:28:37 +00:00
rumble bacd128163 regen 2004-11-22 04:24:25 +00:00
rumble 501793b6d8 kern/28384: VT3606 -> VT6306 typo 2004-11-22 04:23:21 +00:00
jmmv dcfa2c4905 Fix typo in previous commit that was breaking the build (hi, tacha@!). 2004-11-19 17:59:09 +00:00
tacha f2ffe49e42 Add support for Broadcom BCM5705K. 2004-11-19 10:17:17 +00:00
tacha a7c87301d7 regen. 2004-11-19 10:01:20 +00:00
tacha 1e152ddcc3 add Broadcom BCM5705K. 2004-11-19 09:58:42 +00:00
kent ca2819710c implement auich_activate() and auich_detach() 2004-11-17 15:19:30 +00:00
kent d1afddf792 make functions static as possible 2004-11-17 15:14:38 +00:00
jdarrow f18e689470 Regen from pcidevs 1.666 (add two wireless cards) 2004-11-17 11:18:27 +00:00
jdarrow 22caf82968 Add PCI IDs for two wireless cards I've got.
Ralink Technologies (vendor 0x1814) RT2460 (product 0x0101).
Texas Instruments (vendor 0x104c) ACX111 (product 0x9066).
2004-11-17 11:15:03 +00:00
junyoung 7e4d6b33ef Regen. 2004-11-17 03:06:03 +00:00
junyoung 49626f2987 Revert ATI to ATI Technologies.
Remove trailing Corp., Inc., Ltd., and etc. for consistency.
2004-11-17 03:04:45 +00:00
augustss 2769396f67 Add RECORD to the conversion table, otherwise we panic on boot.
The fact that we cannot record (yet) is found out later anyway.
2004-11-16 19:33:56 +00:00
xtraeme a32e5267fb Fix typo. 2004-11-16 17:15:01 +00:00
skrll 17000c110b Regen 2004-11-16 09:18:20 +00:00
skrll 09e4029fc5 Add Intel PRO/Wireless LAN 2200BG Mini-PCI Adapter 2004-11-16 09:17:20 +00:00
soren 9feb7a04f4 Regen. 2004-11-14 15:24:05 +00:00
soren 05f81f873e Add Mylex ExtremeRAID 1100.
Shorten ATI Technologies to ATI.
Simplify names of Intel mobile USB controllers.
2004-11-14 15:23:42 +00:00
kent af9ebe8723 auacer uses aurateconv 2004-11-13 15:15:56 +00:00
kent c1653144ff adopt auconv_set_converter() 2004-11-13 15:00:48 +00:00
kent ad6e9b1b34 device matching by pcireg_t, not a pair of vendor ID and product ID.
This change reduces 170 Byte of i386 kernel size.
2004-11-11 03:06:21 +00:00
cube 6f5a5c1814 Add support for the ICH6 AC97 controller. 2004-11-10 17:22:25 +00:00
cube 7d9f9f3cc2 Add support for the ICH6 IDE controller (82801FB). 2004-11-10 17:19:05 +00:00
cube cf1fc8341b Return an error when a read operation fails, instead of pretending it
succeeded and transmitting a bogus value.
2004-11-10 17:17:14 +00:00
wiz b764f86fae Fix typo in comment; from Sergey Svishchev. 2004-11-10 16:39:04 +00:00
cube a6f37c0203 In auich_calibrate, set sc_ac97_clock to a default value of 48000 first.
That way, if the calibration fails or times out, sc_ac97_clock won't be 0
and there won't be a division by zero later in ac97_set_rate.
2004-11-10 14:14:09 +00:00
kent a5158f56a8 remove unused variable 2004-11-10 04:22:31 +00:00
kent 145085fc2f move IS_FIXED_RATE(), SUPPORTS_4CH(), and SUPPORTS_6CH to ac97var.h 2004-11-10 04:20:26 +00:00
kent 7a23477c6c remove mixer setting code in *_attach() because ac97_attach() does it. 2004-11-09 16:28:14 +00:00
kent 5bea7e5b64 remove unnecessary ac97-related code 2004-11-09 15:57:11 +00:00
kent 57c1715e7b remove mixer setting code in yds_attach() because ac97_attach() does it. 2004-11-09 11:12:54 +00:00
kent 55c5f0f624 ANSIfy and style fixes 2004-11-08 12:10:22 +00:00
kent 971aa8f6c5 print dmesg correctly for VT8237 2004-11-08 06:20:58 +00:00
xtraeme 398264c31a Add support for:
NVIDIA nForce3 250 IDE Controller
NVIDIA nForce3 250 Serial ATA Controller

From Kouichirou Hiratsuka in PR 27843, ok'ed christos@
2004-11-06 08:44:25 +00:00
xtraeme 537252716c Add support for "nForce3 250 MCP-T AC-97 Audio", from Kouichirou Hiratsuka
in PR 27843.

Ok'ed christos@
2004-11-06 08:41:14 +00:00
xtraeme aef353dd52 Regen for:
Add Nvidia nForce3 250 chipset products, from Kouichirou Hiratsuka
in PR 27843.
2004-11-06 08:37:00 +00:00
xtraeme cc73961db1 Add Nvidia nForce3 250 chipset products, from Kouichirou Hiratsuka
in PR 27843.
2004-11-06 08:34:52 +00:00
xtraeme 2f0a18e581 Add another case to match "PCI_PRODUCT_INTEL_82815_FULL_HUB"
(Intel 82815 Hub) in agp_i810_attach(), closes PR 27863.

Ok'ed christos@
2004-11-06 07:43:30 +00:00
yamt e89aeb518a make recording of clct(4) work. namely,
- cs4281_intr: advance a pointer after copying data.
- cs4281_trigger_input: fix an inverted condition about dma mode.
2004-11-02 00:40:08 +00:00
mycroft 74c82c0ec4 Some miscellaneous cleanup:
* Encapsulate all the ring-specific variables into a substructure.  (This will
  help with some potential code sharing.)
* Don't bother with "last buffer complete" interrupts -- we should be taking an
  interrupt anyway because we set IOC on every buffer.
* Likewise, ignore CELV; it's meaningless to us.
* Get rid of the FIFO error counters, since this doesn't actually happen any
  more.
2004-11-01 06:25:35 +00:00
mycroft 170f82c2c3 Copyright maintenance. 2004-10-31 20:15:16 +00:00
mycroft 43670bc418 More code reduction.
Also, allow any sample rate between 8000 and 48000Hz.  (This range should
probably be larger, but this is what's known to work.)

Another 180 bytes shaved.
2004-10-31 20:00:42 +00:00
mycroft 62405c408b Shave another 112 bytes by reducing some divisions to shifts. 2004-10-31 19:28:31 +00:00
mycroft 53a18a1af1 Fix a regression -- my previous changes made the kernel slightly larger. 2004-10-31 18:30:52 +00:00
mycroft f37709ef90 In the trigger routines, start *all* the blocks, not just the first one. This
was causing some "fifo under/overrun" errors during the initial trigger.

Also fixes a ring synchronization problem introduced in the earlier changes.

This should completely fix the FIFO errors with auich.
2004-10-31 16:49:27 +00:00
mycroft 04699fb576 Reorder some register writes just to be safe. 2004-10-31 06:25:55 +00:00
mycroft 91c9307af1 Attempt to mitigate "fifo underrun" errors in two ways:
1) Update the queue pointers any time we get a block completion interrupt,
   not just when we hit the last block.
2) Set the "back-to-back enable" bit.
In addition:
3) Make sure we ack every block we transfer; there was a bug that could cause
   the audio layer to get out of sync.
2004-10-31 05:50:58 +00:00
thorpej e9818f5b5e When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 18:08:34 +00:00
yamt 18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
cube cce3c2a9eb Add support for the BCM575x variants. They're close to the 5705 one, with
some special cases for the PCI-Express versions.  As there is no
documentation available, all of this is inspired from Linux or taken from
FreeBSD (itself inspired from Linux).  There are a lot of magic numbers.

Tested on two BCM5751 devices as found in newer Dell computers.
2004-10-28 07:36:05 +00:00
martti 05e2eaf818 Regen for Dell PERC 4/SC 2004-10-28 07:29:07 +00:00
martti ac15c84040 Align all SYMBIOS entries 2004-10-28 07:26:09 +00:00
martti 0ae886cb1b Added Dell PERC 4/SC 2004-10-28 07:22:23 +00:00
yamt 05f25dcc2a move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
kent 15afb616fc add "hw.auichN.ac97rate" sysctl MIB to specify AC'97 link rate.
It is needed because automatic calibration by auich_calibrate() is not
so precise.

- Why not ioctl?
  It is not good idea to add a new ioctl operation to MI audio for
a specific audio device.
- Why not mixerctl item?
  AC'97 linke rate is not related to audio mixing.
2004-10-27 13:26:43 +00:00
augustss b729362224 Regen. 2004-10-26 11:31:17 +00:00
augustss fe432c40cc Add a vendor and some products. 2004-10-26 11:30:52 +00:00
xtraeme 2141f16fbe Fix typo in a comment: alalog -> analog. 2004-10-26 06:32:20 +00:00