Commit Graph

2154 Commits

Author SHA1 Message Date
thorpej de108bd82d Add enable/disable hooks on devices that have ACPI power management
capability, using D3 and D0 power states.  This saves me quite a bit
of battery when not using the built-in Ethernet on my IBM T-20 during
long IETF meetings.
2001-08-05 23:39:59 +00:00
jdolecek 74954dadf9 use unsigned variable types as appropriate 2001-08-05 18:07:51 +00:00
jdolecek fcc522e5ce It seems the fixed rate versions are actually fixed at 48 kHz, not 44.1 kHz. 2001-08-04 22:15:56 +00:00
bouyer 7c292e3d22 - kill the carrier detect code. It's not usefull any more and can give
false informations on a loaded ethernet segement.
- convert to bus_dma(9) (better late than never :)
- add proper le32toh/htole32 so that it works on big-endian system (tested
  on macppc).
Close PR kern/10327.
2001-08-03 16:53:08 +00:00
ad e7021f649d Remove unnecessary test. 2001-08-03 14:10:16 +00:00
tsutsui 38016b0ba8 Fix some typos in newer ALi M5229 support. Approved by bouyer. 2001-08-03 01:31:08 +00:00
ad aaf3c7c88b Hook in the mly control interface on i386. 2001-08-01 20:54:16 +00:00
tsutsui 2c44aa6dfd Remove unused pciide_print() declaration. From OpenBSD. 2001-08-01 16:29:21 +00:00
matt f8e21592da regen 2001-07-31 22:30:07 +00:00
matt b2c29c20ae Add pci ids for the Intel 80312 I/O companion chip for the
Intel 80200 XScale processor.
2001-07-31 22:27:25 +00:00
ad aae284be36 Oops, put back the initalization of "done" in mly_thread(). 2001-07-31 02:07:14 +00:00
ad 5226d11119 Assume that me->lun contains the device number if this event is for a
logical device.
2001-07-30 23:49:51 +00:00
ad 2fa020ae0b - Forget to report events from logical devices.
- Cosmetic changes.
2001-07-30 23:46:28 +00:00
ad 12c4049d31 Don't match boards with a PCI class code of `I2O'. 2001-07-30 23:29:08 +00:00
thorpej 8fc6974449 Oops, make Rx interrupt deferral actually work. 2001-07-30 20:12:10 +00:00
ad 3b1828355b Add a driver for Mylex AcceleRAID and eXtremeRAID controllers with v6
firmware. Based off the FreeBSD driver, and re-worked by tls, erh and I.
2001-07-30 19:59:04 +00:00
tsutsui 690c5b1ae3 Enable the Acard UIDE controllers by default.
My WDC MDMA-only (non-UDMA) drives did not work on the Acard controllers,
but it turns out that the problem was not Acard specific.
These WDC drives do not work on the ESS ISAPnP wdc port nor on
macppc obio wdc port neither, and another Quantum MDMA-only drive
works fine on the Acard.

These WDC drives work fine on my i386 pciide (which is initialized
by the BIOS), so maybe we have to do something in MI wdc to initialize
such drives properly...
2001-07-28 12:07:11 +00:00
pooka 4ec277f9ee regen 2001-07-28 00:33:43 +00:00
pooka 70cd305a5d 3c556 V.90 MiniPCI modem 2001-07-28 00:33:01 +00:00
thorpej fab087b3a2 Tell the MII layer to advertise PAUSE capability, and configure
the chip's PAUSE threshold.
2001-07-27 22:46:20 +00:00
bouyer 8e2205572d Better support for newer ALI M5229 chipsets: support Ultra/66 for rev >= 0xC2,
Ultra/100 for revs >= 0xC4.
The the generic PCIIDE interupt routine for chipsets rev >= 0xC2 in native
mode, it seems that newer chipsets don't have the ACER_CHIDS register :(
From Linux and FreeBSD.
2001-07-26 20:02:21 +00:00
ad 4950b7867f Map both memory and IO space, but prefer using memory space. 2001-07-26 15:35:20 +00:00
ad 7a92f3b65a Don't map I/O space if we have already have a good memory mapping. 2001-07-26 12:36:16 +00:00
thorpej 799abef5f4 Jumbo frames do not currently work (chip goes catatonic -- silicon bug?),
so don't set the capability.
2001-07-25 15:44:48 +00:00
thorpej 1dfe605642 Match the Antares Gigabit Ethernet. 2001-07-25 01:48:14 +00:00
thorpej 560fc018c4 Regen; Added Antares Gigabit Ethernet. 2001-07-25 01:45:55 +00:00
thorpej 4ac142a1d3 Add the Antares Microsystems, Inc. vendor ID, and the product ID
for their Gigabit Ethernet board (a TC9021 board targeted at the
Sun market).
2001-07-25 01:44:59 +00:00
thorpej 6b0e779ce6 Remove a debugging #define. 2001-07-25 00:12:33 +00:00
thorpej 3939c2a6c7 Driver for the Sundance Tech./Tamarack TC9021 Gigabit Ethernet
controller.
2001-07-25 00:11:51 +00:00
bouyer aa053c0bd1 Regen for TITAN PCI100H. 2001-07-23 20:14:36 +00:00
bouyer d2039a5f9b Add TITAN PCI100H. 2001-07-23 20:13:26 +00:00
thorpej bd35a1b7ed Make sure to initialize the all Rx descriptors properly in *_init()
even if mbufs for them are already allocated.
2001-07-23 17:26:50 +00:00
thorpej 536f4fded2 Adjust some reset delays. 2001-07-23 17:23:09 +00:00
bouyer ecbce129cb Handle HPT-370A controllers, from skanto@sjk-software.fi (kern/13540) but
with some differences to the original patch: don't assume all controllers with
rev >= HPT370_REV are HPT370, and explicitely print if we have a chip with a
rev the driver does't know.
2001-07-23 14:55:26 +00:00
itojun 93a890b609 it seems that pp_{up,down} code does not really help, since (1) sppp_ioctl
calls lcp.{Up,Down} by itself, and (2) as lmc driver uses interrupt to
get the card initialization callback lcp calls from sppp_ioctl
does not really work.  for chdlc pp_{up,down} are not really necessary so
don't bother (#if 0'ed).
2001-07-19 19:15:13 +00:00
kleink d775ce82eb Hint BUS_DMA_READ and BUS_DMA_WRITE. 2001-07-19 17:47:18 +00:00
kleink 1bd93b6232 Hint BUS_DMA_READ and BUS_DMA_WRITE. 2001-07-19 17:19:40 +00:00
itojun b66f433b03 sync with latest Linux driver, avoid framing error on LMC1200 (T1/E1).
from hal@vailsys.com
2001-07-19 17:02:05 +00:00
thorpej 44e529fecc Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places. 2001-07-19 16:36:14 +00:00
itojun e13c617dee do not call pp_{up,down} on cisco HDLC mode, it seems that
sys/net/if_spppsubr.c does not like it.
XXX api clarification needed...
2001-07-19 16:30:52 +00:00
itojun 639dfc8d8f readability changes (s/0/LMC_LINK_DOWN/, whitespace) 2001-07-19 16:14:50 +00:00
itojun abd116eff5 - on IFF_UP change, inform sys/net/if_spppsubr.c of the change so that
we can run LCP and subsequent PPP negotiation.
- suppress too noisy printf() for about AIS event (if you remove the cable,
  it will bark forever).
- sppp_dequeue() can return NULL even when sppp_isempty() is false, so check
  it and do not deref NULL pointer.
- sppp_flush() on LMC interface shutdown.
- prepare to change BPF type on the fly (bpf_change_type).
2001-07-19 15:38:17 +00:00
thorpej 17538b3790 Costmetic change. 2001-07-18 01:10:09 +00:00
elric 99e8b114e0 So, the PowerStorm 4d20 a.k.a. 32bit TGA2 w/ IBM RGB561 RAMDAC was causing
the kernel to panic since it is recognised as a TGA and the TGA driver
doesn't [yet] know what to do with it.

This patch fixes that by:
	o  making tgamatch() try to actually figure out what kind
	   of TGA card is there, rather than simply relying on the
	   vendor/product ids.
	o  creating a tga_cnmatch() so that the console code in
	   arch/alpha/pci/pci_machdep.c can cause the same to occur.
	o  breaking up some of tga_getdevconfig() into a few different
	   functions to re-use code that would have been duplicated.
	o  changed arch/alpha/pci/pci_machdep.c so that it calls out
	   to tga_cnmatch() if DEVICE_IS_TGA() matches before it decides
	   to attach the console as a TGA.

Addresses PR: port-alpha/12923
2001-07-16 00:55:16 +00:00
mrg 0b1849a71a don't try to print pcitag_t values; these are opaque values that should not
be interpreted by MI code.
2001-07-11 08:36:46 +00:00
thorpej 3d98de578f Remove unnecessary include files. From Onno van der Linden. 2001-07-08 17:55:50 +00:00
thorpej bc5d06ea08 Some cosmetic shuffling. 2001-07-08 17:15:45 +00:00
thorpej 9de94b45cc Fix a very, very dumb mistake that broke multicast on the dp83815
and dp83820.
2001-07-08 16:56:50 +00:00
thorpej 62794086ea Change the structure of dp83815_set_filter ever so slightly. 2001-07-07 17:37:39 +00:00
thorpej 7e92a47db9 bcmp -> memcmp 2001-07-07 16:47:43 +00:00
thorpej 51e70f6731 bzero -> memset 2001-07-07 16:46:34 +00:00
thorpej 80f54c0005 bcopy -> memcpy, strcpy 2001-07-07 16:40:23 +00:00
thorpej 46909109f4 bcopy -> strcpy 2001-07-07 16:39:16 +00:00
thorpej 008dd21471 bcopy -> memcpy 2001-07-07 16:37:38 +00:00
thorpej dfd7f38a43 Remove config glue for the old `ncr' driver. 2001-07-07 16:34:33 +00:00
thorpej 444f8e5f30 Remove the old NCR 53c8xx driver. It no longer compiles (it was not
updated for the thorpej_scsipi branch), and has been replaced by Manuel's
MUCH BETTER `siop' driver.

The code can still be referenced by using cvsweb, checking out an
old revision, whatever.  But it's no longer useful to have it appear
in a checked out source tree.
2001-07-07 16:20:55 +00:00
thorpej 9ec2341af3 Add support for jumbo Ethernet frames on the DP83820. 2001-07-07 02:32:38 +00:00
thorpej cf65d4738c Add a bunch of Vital Product Data definitions. 2001-07-06 20:20:55 +00:00
mcr ddb7c50037 added bridge secondary bus reset macros. 2001-07-06 18:07:16 +00:00
mcr aa7bfea672 split pccbb_intr_route() into seperate function. 2001-07-06 18:06:59 +00:00
thorpej 583274a82c For product names that include the media in the name, don't bother
saying "Gigabit".
2001-07-05 21:27:31 +00:00
toshii 4866f1a22b Fix typo. s/extention/extension/ 2001-07-05 08:38:24 +00:00
thorpej d79f9adc90 Add another Lava serial board. 2001-07-04 22:39:11 +00:00
bouyer 1c51ff8336 Better fix for rev 1.94 (disable UDMA for SiS controllers with rev 0xd0):
Different chipsets have the same vendor/device/rev ID for the IDE controller,
but only one of them is buggy. So check dev/rev ID of the function 0
(pchb on the buggy one) of the same device to detect the buggy controller.
2001-07-04 16:26:17 +00:00
thorpej 4f9dcdfb8a Split the receive interrupt handler into two versions, one for the
SiS900/DP83815, one for the DP83820.  In preparation for changes
to the DP83820 version for handling jumbo Ethernet frames.
2001-06-30 22:35:05 +00:00
bjh21 8d829065a6 IFM_1000_TX -> IFM_1000_T, as (breifly) discussed on tech-net. 2001-06-30 17:53:58 +00:00
thorpej 4e30120ef0 Sync the Tx descriptors pre- and post- on the Tigon 2. 2001-06-30 17:02:54 +00:00
thorpej f1ea6f5be0 When we're done setting up the General Information Block, sync it.
Sync the NIC-maintained stats structure as appropriate, as well.
2001-06-30 16:34:59 +00:00
thorpej c05a96f530 Add macros to sync the various bits of the DMA'd control data. 2001-06-30 15:57:58 +00:00
thorpej d2a3ac835c Use macros (like those in every other network driver I have written)
to compute the offset of a structure in the DMA'd control data, and
the DMA address of that structure.
2001-06-30 15:39:51 +00:00
thorpej 83b199c106 Split the tx-end-of-frame routine into Tigon 1 and Tigon 2 verions,
for the same reason we split the tx encap routine.
2001-06-30 14:56:59 +00:00
thorpej ee9c81dd38 Split the transmit encap routine into two versions: one for the Tigon 1
and another for the Tigon 2.  This eliminates a conditional in the
loop around the DMA segments, and will make further cleanup easier.
2001-06-30 14:47:23 +00:00
thorpej 291a21d3fb Move the `ti_tx_ring_nic' pointer out of the ring-data structure
and into the softc.  Garbage-collect the `ti_cmd_ring' pointer,
since bus_space is properly used to access the command ring.
2001-06-30 14:16:55 +00:00
thorpej 6237e487ab When a transmit is complete, sync (and unload!!) the DMA map used
for the packet.  When setting up a packet for transmit, sync the
DMA map being used.
2001-06-30 05:48:24 +00:00
thorpej 17238bfd2b Move the Tigon/Tigon2 firmware, version 12.4.13+wpaul, to a
more appropriate location.
2001-06-30 04:33:11 +00:00
thorpej 2642760b40 Update for D-Link ST201 change. 2001-06-30 01:05:25 +00:00
thorpej cdfa27aeeb Regen. 2001-06-30 01:04:25 +00:00
thorpej 9556d5b2f9 Change the DLINK ST-201 entry, add more Sundance/DLINK Gig-E
products.
2001-06-30 01:03:59 +00:00
thorpej f6bce1a60b Correct spelling of media in the product names. 2001-06-29 23:58:08 +00:00
thorpej abda6184c0 In the `copy small' path, make sure to align the payload. 2001-06-29 23:36:03 +00:00
thorpej 46e1a51e62 Add Tamarack Microelectronics, Inc. vendor ID, and product ID for
Tamarack TC9021 Gigabit Ethernet.
2001-06-28 04:45:09 +00:00
mcr 656bb8c5c7 added Solidum PAX.ware 1100 and Lucent ORCA PCI targets 2001-06-27 17:57:23 +00:00
bouyer db6d5fc4a7 When setting/changing an address, no need to call ti_init() if the interface
is already up.
Especially this allow netatalk to start properly on a ti interface.
2001-06-27 16:47:33 +00:00
elric e2f7c01bbd This was able to crash my new alpha consistently when I started X. 2001-06-24 01:11:08 +00:00
bouyer 8a46c28bc6 Proper media support for Compaq Deskpro 4000. PR kern/13244 from
Andrew Gillham.
2001-06-21 16:33:33 +00:00
thorpej ae2fb7473c Regen; add/update 3Com 3CR990 products. 2001-06-20 19:52:19 +00:00
thorpej 8e15530e96 Add more/update existing 3Com 3CR990 product IDs. 2001-06-20 19:51:12 +00:00
thorpej 08415c62e6 Regen; add SysKonnect SKNET-GE. 2001-06-20 16:33:10 +00:00
thorpej 70bbf8c3aa Add SysKonnect SKNET-GE (GEnesis Gigabit Ethernet). 2001-06-20 16:32:32 +00:00
imp c633f47bfd Regen. 2001-06-20 05:46:24 +00:00
imp 34fe57df0e Add O2Micro PCI-{CardBus,PCMCIA} bridges:
OZ6729, OZ6730, OZ6832/OZ6833, OZ6860 and OZ6812/OZ6872
2001-06-20 05:44:33 +00:00
thorpej 7e843c3ccb Device driver for the Sundance Tech. ST-201 10/100 Ethernet. This
chip is found on the D-Link DFE-550TX.
2001-06-19 23:00:47 +00:00
thorpej 62224968e1 Add support for the Adaptec AIC-6915 10/100 Ethernet. This is
a 64-bit PCI chip, available in 1, 2, and 4 port models.
2001-06-18 22:05:35 +00:00
onoe c07d2e1e96 Add Cisco/Aironet 350
Reported by Wolfgang Rupprecht <wolfgang@wsrcc.com>.
This doesn't fix PR 13181, which says the card doesn't work well.
2001-06-18 13:21:24 +00:00
onoe e523b2f091 regen: Add Cisco/Aironet 350 2001-06-18 13:19:07 +00:00
onoe 61285ac2da Add Cisco/Aironet 350 2001-06-18 13:18:08 +00:00
jdolecek e65b619faa Convert to use ether_ioctl() for SIOCSIFADDR and SIOCSIFFLAGS. 2001-06-18 11:06:26 +00:00
simonb 1506d21315 Make error checking/reporting a little more correct. 2001-06-18 01:58:08 +00:00
tsubai de98ab5b38 Regen. 2001-06-17 19:51:27 +00:00
tsubai b63b6d01e6 Add device IDs on the new iBook. 2001-06-17 19:50:33 +00:00