Commit Graph

7215 Commits

Author SHA1 Message Date
augustss 6fa8665eeb Handle detach that happens before attach has finished. (Reported by mycroft.) 2000-02-17 18:42:21 +00:00
sommerfeld 50c84950f2 awi: rewrite to be higher performance. 2000-02-17 17:37:23 +00:00
augustss 1955c335af Regen. 2000-02-17 16:30:44 +00:00
augustss 536b31a5c8 Add Sony PCGA-UMS1 mouse. 2000-02-17 16:30:11 +00:00
sommerfeld 7adb22cfa5 Add detach support.
Light cleanup.
2000-02-17 15:58:32 +00:00
mycroft f7ad1af2b5 Use bpf_mtap() correctly. 2000-02-17 05:41:41 +00:00
soren 4331d2bcaa Regen. 2000-02-16 04:29:32 +00:00
soren 021ff75015 Add Toshiba ISA bridge. 2000-02-16 04:29:20 +00:00
oster 7deba340d7 Some of these function names are bad enough that no one else would probably
pick them, but preface them with rf_ anyway.
2000-02-16 01:10:44 +00:00
enami 4a1320b29f Put the entry of FNW-3700T after the entry of SVEC-PN650TX
so that SVEC-PN650TX errornously recognized as FNW-3700T.
Pointed out by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>.
2000-02-14 23:13:49 +00:00
augustss b223c00cee Avoid linker error if no PHY is attached. 2000-02-14 20:29:54 +00:00
pk 1d373a94e2 Bump receive buffer size up to the maximum DMA burst boundary. 2000-02-14 17:14:28 +00:00
pk a1b5434cec Make promiscuous mode go again. 2000-02-14 17:06:45 +00:00
bouyer 085f44145c - Be more strict in status check before sending a command (make sure
DRQ is not asserted). Closes kern/9346.
- Change the "fake identify before the real one" by a delay(). The real cause
  of the problem is that the drive is unresponsive just after a reset.
  The real problem (and the solution) showed up after the first change.
2000-02-14 12:37:35 +00:00
augustss 9558d7b27b Regen. 2000-02-13 23:10:22 +00:00
augustss a39279da39 Add a bunch of devices. 2000-02-13 23:10:02 +00:00
ragge 520d8c032e Waked up from the dead 2000-02-13 13:01:14 +00:00
itojun 99b18eac36 on attach, check if we've got meaningful mac address or not,
to detect io mapping problem.

on detach, handle resource deallocations more carefully.
2000-02-13 06:17:58 +00:00
oster 445591e874 Get recent changes into the tree:
- make component_label variables more consistent (==> clabel)
- re-work incorrect component configuration code
- re-work disk configuration code
- cleanup initial configuration of raidPtr info
- add auto-detection of components and RAID sets (Disabled, for now)
- allow / on RAID sets (Disabled, for now)
- rename "config_disk_queue" to "rf_ConfigureDiskQueue" and properly prototype
in rf_diskqueue.h
- protect some headers with #if _KERNEL  (XXX this needs to be fixed properly)
  and cleanup header formatting.
- expand the component labels (yes, they should be backward/forward compatible)
- other bits and pieces (some function names are still bogus, and will get
changed soon)
2000-02-13 04:53:57 +00:00
augustss 0b2e81991d Avoid panic when a non-working hub is detached. 2000-02-12 23:44:16 +00:00
enami 84b6105bbe Check if device is active in wi_intr and wi_inquire. 2000-02-12 23:35:28 +00:00
ad fc8ea8f0c5 Misplaced #endif. 2000-02-12 22:06:54 +00:00
augustss d3fb7161d2 Regen. 2000-02-12 22:02:01 +00:00
augustss b4fac8c7d0 Add Microsoft Internet Keyboard Pro. 2000-02-12 22:01:31 +00:00
ad 59748e7e55 Fix the unaligned accesses discovered by dbj. 2000-02-12 21:58:58 +00:00
chopps 53e6733789 awi is an 8-bit only card, so set the 8bit flag. 2000-02-12 19:58:35 +00:00
thorpej 1268cc5d6c If we got an xfer from our backlog queue, don't allow sleeping; we're in
interrupt context.

XXX This is fixed properly in the thorpej_scsipi branch, but that won't
be ready for 1.5, I don't think.
2000-02-12 19:12:52 +00:00
thorpej fc72b13d27 Const poison. 2000-02-12 19:05:55 +00:00
itojun 02bf7fcd13 add wi_detach and friends so that we can hot-swap wi card. 2000-02-12 16:08:04 +00:00
oster edc931efea Make this compile without warnings on alphas.
(Problem noted by Aaron J. Grier)
2000-02-12 16:06:27 +00:00
augustss 523d157a05 Regen. 2000-02-12 15:02:56 +00:00
augustss a79d73d045 Add Corega FEther adapter. From PR 9394. 2000-02-12 15:02:21 +00:00
enami 01868857df Add activate routine and check device active flag also in one second
tick handler.
2000-02-12 04:05:49 +00:00
enami fbc47bda30 Cosmetic changes. 2000-02-12 03:55:49 +00:00
mjacob 1b188ee2ff A lot of cleanup and shrinkage. Some items moved to isp_tpublic.h. 2000-02-12 02:33:34 +00:00
mjacob 55a78c1ee4 Add in 12160 (Ultra3) support. Turn back on fast posting for the new
generateion parallel SCSI cards (1240/1080/1280/12160). Split up nvram
reading routines to be more readable. Fix topology reporting- 2200 has
connected topology in mailbox 6 when you're done getting your loop id
(supported: Private Loop (NL Port), N-Port, F-Port, FL-Port). The 2100
doens't report this, but we can synthesize it to be either NL-Port or
FL-Port. Add in some connection mode async events.
2000-02-12 02:32:21 +00:00
mjacob 56e16448ad add in 12160 (Ultra3) related definitions 2000-02-12 02:29:00 +00:00
mjacob 9f63fdeefb add in 12160 (Ultra3) NVRAM definitions 2000-02-12 02:28:32 +00:00
mjacob 87355d841f add some Qlogic 2200 point-to-point and extended ICBOPT definitions 2000-02-12 02:26:26 +00:00
mjacob 50f2620822 add 80 MHz case 2000-02-12 02:25:28 +00:00
mjacob 3f96822c3b some minor cleanups 2000-02-12 02:24:20 +00:00
mjacob 63c56a9de6 add a more public shared i/f to target mode 2000-02-12 02:23:13 +00:00
mjacob 6eba47aa8f add (untested in NetBSD yet) Qlogic 12160 (Ultra3) suppot 2000-02-12 02:22:37 +00:00
mjacob 29f08cd82d add 12160 (Ultra3) microcode 2000-02-12 02:07:49 +00:00
simonb 2db5581a4c Declare the mcclock_pad32_busfns variable as extern. 2000-02-11 02:36:16 +00:00
thorpej 29ae6dbe05 We're given a K1SEG address already. 2000-02-11 01:32:42 +00:00
chopps d8595b9af3 map common memory 8 bit for cis scan when following longlinks. 2000-02-10 09:01:52 +00:00
chopps 44b423d73b always map attr memory 8 bit, since its defined that way. 2000-02-10 09:00:19 +00:00
joda d40e2b51ee add detach code 2000-02-09 22:15:57 +00:00
enami e00270524e ASIX AX88190 support (Planex FNW-3700-T and Melco LPC3-TX) from FreeBSD/PAO3. 2000-02-09 15:40:23 +00:00
enami 67bc20747a Support Xircom CompactCard Ethernet CFE-10. 2000-02-09 14:54:53 +00:00
enami 99f529f0b3 - Since all resources are mandatory, no need to manage individually.
- KNF some code.
- Factor out some code into function.
- Disestablish an interrupt handler when failed to enable card power.
2000-02-09 14:42:33 +00:00
enami dc87f2899f - No need to keep track enable/disable state here. The smc91cxx.c also
manages it.
- Disestablish an interrupt when failed to enable card.
- Don't say I'm enabled if failed to enable card.
2000-02-09 13:40:42 +00:00
enami 94a6dd9169 Regen. 2000-02-09 13:33:22 +00:00
enami 947c0fee74 Add an entry for Planex FNW-3700-T. 2000-02-09 13:32:23 +00:00
enami e729d284ad Add an entry for Melco LPC3-TX. 2000-02-09 13:20:55 +00:00
enami e92b285eaf Add an entry for Xircom CompactCard Ethernet CFE-10. 2000-02-09 13:07:45 +00:00
itohy 0a1d6b1357 Make it compile with options DEBUG.
Reported by Kawamoto Yosihisa (PR #9379).
2000-02-09 07:57:52 +00:00
augustss 76c14cd322 Don't stall the control pipe on error. 2000-02-08 18:46:03 +00:00
augustss e922214fb2 Use NULL instead of 0. 2000-02-08 18:45:27 +00:00
thorpej 3bc7ce8d31 Cast bus_size_t to u_long for printing. 2000-02-08 18:40:51 +00:00
tron 73286f8d56 Fix printf() format string. 2000-02-08 18:31:02 +00:00
mycroft 2a2d421881 Forgotten part of chopps\'s i82365_isasubr.c commit. 2000-02-08 17:56:58 +00:00
mycroft ac0db48a13 In light of the previous change, whack the clearing of CSC_INTR
again.
2000-02-08 17:53:48 +00:00
mycroft eb071839ea The final read of the CSC register does not appear to be needed any
more.
2000-02-08 17:48:39 +00:00
chopps d12c4012f1 deal with loops that we get stuck in due to unhandled interrupts. 2000-02-08 17:14:29 +00:00
mycroft 5abb516b1e Be more careful with the CSC_INTR register while probing.
Make some output more specific.
2000-02-08 16:59:52 +00:00
bouyer f522d6f1ee Supports "USR 3CP5609 PCI 16550 Modem", from Kent Polk. 2000-02-08 16:26:23 +00:00
bouyer b3cffb232f regen 2000-02-08 16:24:00 +00:00
bouyer b614c6a569 Add US Robotics vendor ID, and USR 3CP5609 PCI 16550 Modem product ID.
From Kent Polk.
2000-02-08 16:22:37 +00:00
enami 34d63b5623 Since we now only allocate this one, no longer necessary to check and free(). 2000-02-08 12:56:00 +00:00
enami 1658944ebe - Don't rely on implicit declaration.
- Sinc wi/ existing coding style.
2000-02-08 12:51:30 +00:00
enami c7573d517e - Bail out from attach stage if failed to enable card, number of iospace
or memspace is unexpected, failed to map iospace or failed to configure
the controller properly.
- Disestablish an interrupt handler if failed to enable card.
2000-02-08 12:49:12 +00:00
augustss e0c519464a Add methods for ucom to call back on open/close. 2000-02-08 09:18:01 +00:00
erh 8613a0edaa Regen. 2000-02-08 06:36:46 +00:00
erh a87f862d24 Add Allied Telesyn AT-1500, lance ethernet. 2000-02-08 06:36:29 +00:00
nisimura 42e4e9fd0c Add the missing piece of previous mod. 2000-02-08 04:35:03 +00:00
thorpej bfdc6759fb Don't rely on the receive descriptor's BCAST/MCAST status bits. Test the
Ethernet destination address to see if it's multicast.
2000-02-08 00:22:13 +00:00
thorpej 52a2804a5c Add a new function call to the ISA DMA API: isa_dmamaxsize(), which returns
the maximum transfer size for the specified DMA channel.  Make all clients
of ISA DMA use this call to determine their maximum transfer size.
2000-02-07 22:07:27 +00:00
thorpej fe551f0e64 Fix a bug in disksort_*() which caused non-optimal ordering when multiple
active partitions were on a single spindle.  Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
2000-02-07 20:16:47 +00:00
augustss a534cd4254 Correct John Markus Bjørndalen's horribly mangled name in a comment. 2000-02-07 09:40:37 +00:00
augustss a8365d0e29 Use pcmcia_devinfo(). 2000-02-07 09:36:27 +00:00
augustss e2ab50484b Add a pcmcia_devinfo() function (akin to pci_devinfo). It generates a
string suitable for printing in the attach message.
2000-02-07 09:35:29 +00:00
jonathan e9a4467c58 Fix thinko in previous revision: it wouldn't catch deassert.
Revert the code inside the new test to the previous-but-one revision.
2000-02-07 02:17:18 +00:00
jonathan 2da22cf2c5 Check for DCD status change interrupts which signal PPS events, even
if the line discipline is ignoring carrier (e.g., via comparam()'s
setting of sc->sc_msr_mask).  Move PPS timestamp outside the normal
status-change processing, and ignore sc_msr_mask when testing
for PPS events.
2000-02-06 23:23:37 +00:00
cgd dbeafc9dbe clean up some printfs 2000-02-06 08:14:13 +00:00
nathanw 958e687d69 LP64 printf fixes. 2000-02-05 20:02:42 +00:00
chopps 6d8c9583a7 indent this file 2000-02-05 18:42:37 +00:00
chopps 101848d272 run this through indent with some comment cleanup -- more knfing needed. 2000-02-05 18:20:08 +00:00
augustss 494c9affea Support detach. 2000-02-05 18:11:55 +00:00
enami 645c869160 Add detach support for ethernet portion. 2000-02-05 04:44:00 +00:00
enami 9267b8f018 Remove unnecessary includes. 2000-02-05 04:41:49 +00:00
enami abac10f360 Yet anothor workaround for hpcmips. I guess real problem is somewhere else...
With rev.1.37, my MobileGearII for DoCoMo finds both ne0 and wd0
even if pcic_delay_sleep is 1.
With rev 1.40, it fails to find wd0.
2000-02-05 04:34:36 +00:00
dante 2a46aa5d9a Fix "unused variable" warning when FAILSAFE option is defined 2000-02-04 16:23:14 +00:00
dante b4edda97d5 Fix a compilation bug due to a missing parenthesys 2000-02-04 15:43:46 +00:00
augustss e037c568cb Update for cardbus unmap changes. 2000-02-04 13:48:23 +00:00
augustss 1facb42e6e Make the driver work even if DIAGNOSTIC is not set. 2000-02-04 13:43:56 +00:00
dante 29be498635 Add a list of all the currently supported boards 2000-02-04 13:16:22 +00:00
enami 9c688fd57c s/SYSTEM/SYSMEM/; so that this file compiles again. 2000-02-04 11:04:46 +00:00
joda 8006211b18 fix previous broken commit of the 8-bit memory handling (spotted
by Christian Hopps); this will enable 16-bit memory accesses for devices
that can handle it
2000-02-04 10:18:28 +00:00
itojun 0f09f8dd2b cope with card insertion/removal during suspend-resume session.
(removal/ insertion after suspend and before resume)

How should we deal with card swaps?
2000-02-04 09:45:34 +00:00
enami 730f15bb19 Free resources on attach failure. 2000-02-04 09:31:07 +00:00
enami 82235a8673 Actually, no need to keep track of sc_ih. 2000-02-04 09:30:28 +00:00
chopps 2a1352a5b3 enable the card before establishing the interrupt to avoid being called
with stray interrupts before we are ready.
clear the card interrupt after enabling the card
2000-02-04 08:45:41 +00:00
chopps 70e711cd60 only enable interrupts from the controller if the socket is enabled 2000-02-04 08:42:47 +00:00
chopps d344dd94ab keep track of the enabled state of a socket 2000-02-04 08:42:07 +00:00
haya ded26ac3e4 Now cardbus_mapreg_unmap() has been implemented in
sys/dev/cardbus/cardbus_map.c.  The detech function in
sys/dev/cardbus/if_tlp_cardbus.c uses cardbus_mapreg_unmap().
2000-02-04 07:59:20 +00:00
explorer 59db45db2a bring over WEP mode from FreeBSD/OpenBSD 2000-02-04 07:48:29 +00:00
explorer 4a5667f967 undo part of the previous commit. I'll just steal the code from freebsd,
to minimize differences between the drivers.
2000-02-04 06:22:52 +00:00
chopps 9ff702157c doh, remove debugging leftover (forcing irq 15 to always be avail). 2000-02-04 05:30:55 +00:00
enami af9710cf6e Disestablish an interrupt if failed to enable the card. 2000-02-04 04:54:51 +00:00
enami ed0f41807d - Call if_deactivate instead of smc91cxx_disable when deactivating.
- Fix typo in comment.
2000-02-04 04:05:50 +00:00
enami 6f28840935 Remove no longer necessary old code. 2000-02-04 03:40:00 +00:00
enami 3ff6804bdd Release the resource on attach failure. 2000-02-04 03:38:06 +00:00
explorer de4f36ae63 Add encryption structure definitions -- it's interesting tht the gold card
has 128 bit encryption, but the key space is 14 * 8 bits, or 112 bits...
I wonder where the other 16 bits comes from?
2000-02-04 02:03:02 +00:00
cgd 942a54e0c1 replace the *_lookup table entry match/lookup functions in all of
these drivers with a single common function (which supports tables
of variable-sized structures).  Things are mostly as they were before:
tables are terminated by entry with NULL name, etc.  There's also
the ability to call a driver-specific match function which can be used
to augment the table lookup.
2000-02-04 01:27:12 +00:00
enami 0bff6e573a Cosmetic change; use IRQUNK instead of -1 always. 2000-02-03 23:03:11 +00:00
chopps 71d64756c2 wrap optimized copy routines in an ifdef 2000-02-03 21:27:35 +00:00
dante cbacaf54d7 Add AdvanSys U2W (LVD) boards support 2000-02-03 20:28:26 +00:00
dante fd2fd888ef Add AdvanSys U2W host adapters 2000-02-03 16:56:23 +00:00
dante 787999d9e4 Add AdvanSys U2W boards 2000-02-03 16:51:42 +00:00
itojun 579e538de0 fix promisc mode for smc91cxx again. 2000-02-03 16:20:49 +00:00
joda 5b67628108 regen 2000-02-03 13:58:55 +00:00
joda 1533d39d9e 2 Micro -> O2 Micro 2000-02-03 13:58:28 +00:00
enami 1102c5ed1d Remove temporary workaround for hpcmips. Now it works without it. 2000-02-03 09:00:39 +00:00
enami d6554f3e25 Cosmetic changes; remove unnecessary semi-colon. 2000-02-03 08:59:20 +00:00
enami d6df5ce334 Make the product lookup table driven. 2000-02-03 08:52:21 +00:00
enami f1ce315cc0 Regen. 2000-02-03 08:26:33 +00:00
enami fc92de5f92 Add an entry for Icom WAVEMASTER SL-200. 2000-02-03 08:25:55 +00:00
nisimura c6641d91a8 Merge IOASIC register definitions. 2000-02-03 08:13:44 +00:00
thorpej 44a20a6c96 If we read a bad header signature, report what we read. 2000-02-03 06:47:31 +00:00
thorpej 5802ccb9c9 In ahc_intr(), if initialization failed, don't try to service the
interrupt.
2000-02-03 06:25:09 +00:00
thorpej a084fd2f81 Some PHYs go off into left field for a few seconds if you attempt to kick
autonegotiation while it's already enabled.
2000-02-03 06:11:13 +00:00
chopps 68a7084f0c attempt to make this more like the std indicates 2000-02-03 06:07:06 +00:00
enami 20522c36ed Detach MII if there is. 2000-02-03 06:03:39 +00:00
thorpej 9ff57fe506 Oops, missing return; 2000-02-03 05:38:57 +00:00
nisimura 8e27abd255 Use bus_space_{write,read} for IOASIC register access. 2000-02-03 05:16:30 +00:00
thorpej 22fe15d7b4 Let mii_phy_setmedia() handle the IFM_AUTO case, too. 2000-02-02 23:34:56 +00:00
augustss de5a3532be Fiddle with some PHY bits on the D-Link adapter as well. From FreeBSD. 2000-02-02 20:06:55 +00:00
chopps a5dc628e12 manipulate packet counters, support detach, and add commented out code to
DTRT on suspend
2000-02-02 18:39:44 +00:00
thorpej 8923ca0b00 Make PHY drivers provide a pointer to their status routine, and add
a generic mii_phy_status() that calls back into the PHY.  It doesn't
do anything interesting yet, but it will soon.
2000-02-02 17:50:43 +00:00
thorpej 94b1e4084a Don't dry to diving MIIF_NOISOLATE in the PHY drivers. Instead, pass
flags down from the parent to child vi mii_attach().
2000-02-02 17:46:42 +00:00
thorpej eed75dbc26 Don't dry to diving MIIF_NOISOLATE in the PHY drivers. Instead, pass
flags down from the parent to child vi mii_attach().
2000-02-02 17:09:38 +00:00
itojun b2cac6e684 if_detach for sm/pcmcia.
with addition of resource allocation flags in softc (to DTRT on detach).
2000-02-02 16:04:40 +00:00
enami 586595e6d4 Make irq probing controled by patchable variable and disable on hpcmips
by default.  It doesn't work on hpcmips.
2000-02-02 14:44:09 +00:00
enami f7096eef97 Fix typo; not PCIC_DEBUG but PCICDEBUG. 2000-02-02 14:23:48 +00:00
augustss cee0dfa2d5 Add rnd_source. 2000-02-02 13:22:07 +00:00
augustss c9d8358135 Generate usb events on attach and detach.
Clean up detach a little.
2000-02-02 13:21:25 +00:00
augustss 3a1229e779 Generate usb events on attach and detach. 2000-02-02 13:20:59 +00:00
augustss aae9ac7e11 Generate usb events on attach and detach.
Handle rnd stuff correctly.
2000-02-02 13:19:44 +00:00
augustss 4b93911b25 Generate usb events on attach and detach. 2000-02-02 13:18:45 +00:00
itojun 7a7a3bcfdf handle attach failure in ne/pcmcia more carefully. (otherwise we'll
have trouble on detach)
2000-02-02 13:06:15 +00:00
itojun 7aa608e563 handle attach failure in more detail. make sure to
pcmcia_function_disable() on failure.
2000-02-02 13:02:56 +00:00
itojun 4e1b4b724b implement cnw_detach.
XXX it looks that whenever there's error-return in xx_attach,
we need to have some check in xx_detach().  otherwise, routines such as
ether_ifdetach() will be called without call to ether_ifattach().
2000-02-02 12:25:13 +00:00
augustss b10d6a6fc0 Support detach. 2000-02-02 11:42:29 +00:00
itojun f4e8883ccd use a bit more standard (sys/device.h) prototype for {dp8390,ne2000}_detach(). 2000-02-02 11:41:56 +00:00
itojun 2b4766a6b2 enami's fix to dp8390 did the trick, it does not hang up any more.
enable detach routine by default.
2000-02-02 11:17:32 +00:00
augustss a5f7a2c791 Detach rnd source in ep_detach(). Check for DVF_ACTIVE in epintr(); 2000-02-02 11:00:48 +00:00
enami 60e57afedd - Check also DVF_ACTIVE bit in dp8390_intr.
- Delete ifmedia instances on detach.
2000-02-02 10:50:56 +00:00
enami a54d060a1c Unhook the entropy source on detach. 2000-02-02 10:45:12 +00:00
enami 500a12d2e5 - No need to wait in pcic_chip_socket_disable. It was intended to keep
some period between disable and enable in spec, but is done in
pcic_chip_socket_disable.  And we also disable socket in pcic_deactivate_card,
we should do it in another way if it is really necessary.
- Shorten the wait message so that ps(1) and ps in ddb be happy.
- Replace newly added long delay with sleep.
2000-02-02 10:31:45 +00:00
enami e16a469c8f Cosmetic changes. 2000-02-02 10:19:51 +00:00
itojun 17f5887294 implement if_detach code for ne/pcmcia.
XXX still incomplete, ne_pcmcia_detach() commented out for safery - please test
2000-02-02 10:00:06 +00:00
enami a909d816d2 Add detach support. 2000-02-02 09:34:51 +00:00
augustss e4c766e299 Make sure to untimeout() things on detach. 2000-02-02 08:57:51 +00:00
augustss 82559ba682 Move detach operations around a little to simplify (and perhaps get it
right?).  Prompted by Jason, itojun and myself.
2000-02-02 08:41:00 +00:00
augustss 4a6ae7bdfc Get rid of shutdown hook and attached media on detach. 2000-02-02 08:08:50 +00:00
thorpej 84dc99fdea Bring some order to the chaos which was the MII code function naming
"conventions".
2000-02-02 08:05:26 +00:00
augustss ea45df4d30 Make sure to get rid of shutdown hook and ttach media on detach. 2000-02-02 08:00:21 +00:00
itojun af1d56129f wrap bpfdetach() with NBPFILTER > 0. 2000-02-02 07:47:33 +00:00
augustss 481e8339dc Change the USB event mechanism to include more information about devices
and drivers.  Partly from FreeBSD.
2000-02-02 07:33:59 +00:00
augustss 0151072444 Make ep driver detachable. 2000-02-02 07:23:28 +00:00
augustss 2c371af454 Make ray driver detachable. 2000-02-02 07:22:06 +00:00
chopps ea37d51548 do something more like pccbbs chip_enable. don't enable interrupts
until we have everything else setup..
2000-02-02 04:45:21 +00:00
thorpej 0738a5d4ac Driver for the Davicom DM9101 10/100 Ethernet PHY. This PHY is found
on several inexpensive 10/100 Ethernet boards (e.g. D-Link DFE-530TX,
Winbond 10/100 boards), and is also the built-in PHY on the DM9102
10/100 Ethernet chip.
2000-02-02 04:29:49 +00:00
chopps 4483fc0f5f restore irq 10 to pcic_isa_intr_alloc_mask 2000-02-01 22:56:17 +00:00
thorpej 001748dc57 First cut at detach support; doens't fully work yet. 2000-02-01 22:54:47 +00:00
thorpej db8dc44033 Add support for detaching the interface. 2000-02-01 22:53:14 +00:00
chopps d8e72e215d implement probing for available irqs on non-cirrus pcmcia controllers
including cardbus controllers running in pcic mode
2000-02-01 22:39:51 +00:00
augustss e7f114ba6d Make sure to use delay() in usb_delay_ms() while cold booting. 2000-02-01 17:46:17 +00:00
enami 11264e95ef Regen. 2000-02-01 10:21:00 +00:00
enami ad68157d83 Add an entry for Melco WLI PCM (but driver isn't available yet). 2000-02-01 10:19:51 +00:00
enami 25b484e01a Pass an appropriate value as alignment (0 is not such a value). 2000-02-01 10:12:04 +00:00
enami d549d0992b Rearrenge code a bit for the sake of another device. 2000-02-01 10:00:41 +00:00
enami db644f36ea Cosmetic changes. 2000-02-01 08:58:25 +00:00
enami 98ba9b6a65 Sync awi_pcmcia_get_enaddr with mbe_pcmcia_get_enaddr. 2000-02-01 08:52:05 +00:00
enami f06ba20199 RCS Id police. 2000-02-01 08:43:25 +00:00
enami 82cf6568cf Sync wi/ if_wavelan_ieee.h version 1.4 of FreeBSD. 2000-02-01 08:23:37 +00:00
enami 19aa9f2cbb The workaround for Hagiwara SYS-COM Compact Flash card is no longer necessary. 2000-02-01 06:48:15 +00:00
enami a945b488ae Regen. 2000-02-01 05:51:31 +00:00
enami 032ef78e07 Print more detailed name for Corega ethernet cards. 2000-02-01 05:50:18 +00:00
augustss 6393288539 Put some #ifdefs around power and shutdown hooks. 2000-02-01 05:42:52 +00:00
augustss daa36b1b58 Rename TAILMASK to HEADMASK, since it really masks the head pointer.
From FreeBSD.
2000-01-31 22:35:13 +00:00
augustss cc46ffeb91 Change where the has table for physical-to-virtual address translation
is handled.  Partly from FreeBSD.
2000-01-31 22:09:13 +00:00
augustss 964e21e33a Use ${RM} 2000-01-31 21:08:11 +00:00
augustss ae4bbc4485 Fiddle with over-current protect when turning on port power to make
things work for some OHCI controllers.
2000-01-31 20:17:25 +00:00
augustss c9aa323521 Change the way the HC done method is invoked a little. 2000-01-31 20:13:07 +00:00
thorpej 547bd53f89 Add support for the SiS 7016. 2000-01-31 18:36:12 +00:00
thorpej f457f7c969 Regen. 2000-01-31 18:34:51 +00:00
thorpej a2efc77ee1 Add SiS 7016 10/100 Ethernet. 2000-01-31 18:34:19 +00:00
haya 2e9b49c888 Force power off when a CardBus card is detached.
Use tsleep when kernel thread works.
2000-01-31 08:49:07 +00:00
thorpej a72f993570 When possible, use ring mode for descriptors. Not only is this slightly
more efficient on genuine DEC chips, but some clones apparently Lose Badly
if you use chain mode.  To further complicate things, some clones *only*
do chain mode, so make this whole mess conditional.
2000-01-28 23:23:49 +00:00
thorpej 59fbdbb7cb Just use a regular Tx descriptor for the setup packet; don't bother with
a separate one.
2000-01-28 22:23:58 +00:00
pk f18d4a028b Define the fixed hme PHY addresses. 2000-01-28 15:52:34 +00:00
pk 437ad6d192 Reset audio chip on device open. 2000-01-28 15:49:44 +00:00
augustss ef79cf035a Correct error message list. From Nick Hibma. 2000-01-28 13:32:55 +00:00
augustss 119272426a Fix typo. From Nick Hibma. 2000-01-28 10:19:48 +00:00
augustss 8cc78f4f7d Small restructuring: break out opening of pipes into its own function. 2000-01-28 00:51:25 +00:00
augustss 3eccf22362 GC a #define. 2000-01-28 00:45:55 +00:00
augustss 30f0efb4f2 Add uhci_root_ctrl_done() method. 2000-01-28 00:44:27 +00:00
augustss 9cd4bf4652 Remove the hack that handled truncated transfers. 2000-01-28 00:29:53 +00:00
augustss 4e9e8e52f4 Change the test to check if transfers are done. The old test was broken
and sometimes reported transfers as done prematurely.
This fix seems to stabilize the Ethernet drivers.
2000-01-28 00:15:54 +00:00
augustss 3c27de72ac Fix typo in tailp bit defines. From Nick Hibma. 2000-01-28 00:11:38 +00:00
augustss 10dd6e61c3 Regen. 2000-01-28 00:09:19 +00:00
augustss d4dda219e1 Fix typo. 2000-01-28 00:08:57 +00:00
thorpej c74e0a8db2 Add detachment support to the MII layer. 2000-01-27 16:44:30 +00:00
enami cf83f4ae57 Use delay by default on hpcmips for now. 2000-01-27 01:05:17 +00:00
augustss e00a11df5e Make it easy to switch between using attribute memory and not. 2000-01-26 22:28:38 +00:00
thorpej b1ec3fa901 Give the ISV filter a chance to verify 21143 pass 4.1 SROMs before running
them through the quirk table.
2000-01-26 16:51:11 +00:00
thorpej 063cb5e5dc Additional hackery for the Cobalt interfaces. Even though these are
pass 4.1 21143s, they have a 128-byte SROM, and thus use a different
SROM address size than all other pass 4.1 21143s.

A plea to hardware designers -- *please* read application notes for
the components you're using before putting your hardware together.  Thanks.
2000-01-26 15:50:52 +00:00
augustss 57d2439d74 Try to avoid accessing the HC if it is dead. Suggested by mycroft. 2000-01-26 10:04:38 +00:00
haya 653eefc8f4 Add cardbus detach functionality. Add a function
cardbus_detach_card() in cardbus.c and enable detach code in cardslot.c
2000-01-26 09:04:59 +00:00
haya 639bd74d21 Pccbb manages interrupt handlers by itself for its child device. 2000-01-26 09:02:41 +00:00
thorpej 4656f0ba52 Remove the FreeBSD support from this file. It hasn't worked in FreeBSD
for some time, and only made the code harder to read.
2000-01-26 06:41:11 +00:00
thorpej 422cc09430 First attempt at a CardBus front-end for the `ahc' driver. This will
support the Adaptec ADP-1480 CardBus SCSI cards, which are a stright
AIC-7860 implementation.
2000-01-26 06:37:23 +00:00
thorpej 494b4a9ed3 Fix an oversight in the AIC-7xxx SEEPROM split. 2000-01-26 06:27:32 +00:00
thorpej a697dac5f2 Back out a change I didn't intend to commit. 2000-01-26 06:17:59 +00:00
thorpej 8949eab0cb Split the code that reads the SEEPROM into its own file. 2000-01-26 06:04:37 +00:00
augustss 3d3f376619 Print out what kind of card it is earlier and more accurately. 2000-01-26 02:25:47 +00:00
thorpej dc4e418fa6 Add the Linksys Etherfast 10/100. These are currently being rebadged
as the NetGear FA410TX 16-bit PC Card.
2000-01-26 01:27:12 +00:00
ad 62c4800e7f Argh - add initialization that got lost during editing of previous addition. 2000-01-26 01:23:32 +00:00
thorpej def54ed969 Regen. 2000-01-26 01:06:03 +00:00
thorpej a73e3e37b1 Add the Linksys Etherfast. 2000-01-26 01:05:23 +00:00
thorpej 2bd8866643 "i/o" -> "memory" 2000-01-25 23:23:48 +00:00
drochner 1f723151f2 use BUS_SPACE_MAP_PREFETCHABLE instead BUS_SPACE_MAP_CACHEABLE where the
PCI BAR bit is referred to
2000-01-25 22:32:20 +00:00
drochner 7360584deb use BUS_SPACE_MAP_PREFETCHABLE instead BUS_SPACE_MAP_CACHEABLE where the
PCI BAR bit is referred to
(XXX is the hack still necessary?)
2000-01-25 22:31:06 +00:00
drochner 4f1e715248 use BUS_SPACE_MAP_PREFETCHABLE instead BUS_SPACE_MAP_CACHEABLE where the
PCI BAR bit is referred to
2000-01-25 22:30:04 +00:00
thorpej 62fb37ba49 Some changes for the Xircom X3201-3 in 21143 emulation mode:
- The Xircom doesn't bring itself out of reset; we have to do it.
- The Xircom requires transmit buffers to be aligned to 4 bytes, too.

Partially from Rafal Boni (though the Tx buffer alignment issue is
handled much differently in this version).
2000-01-25 22:11:12 +00:00
soren 27cb56c54d Regen. 2000-01-25 21:58:59 +00:00
soren 8b39eb4d8e Add Digi International adapters. 2000-01-25 21:58:45 +00:00
soren a81c1788ab Regen. 2000-01-25 21:58:23 +00:00
soren 3a9b991c44 Add Lexar Media CF. 2000-01-25 21:58:06 +00:00
thorpej 701cc4b663 Add support for the Xircom X3201-3 in 21143 emulation mode. This chip
appears on some Xircom and Intel RealPort(tm) cards.

From Rafal Boni, with some slight modifications from me.
2000-01-25 21:50:30 +00:00
drochner e81d123f6d try to dtrt for sector sizes <DEV_BSIZE (at least, don't divide by 0) 2000-01-25 20:42:33 +00:00
thorpej 6dc0e3435d IFM_1000_FX -> IFM_1000_SX 2000-01-25 20:19:14 +00:00
thorpej 02af3f45b6 Clean up the SROM addrbits code a little. 2000-01-25 19:53:34 +00:00
chopps da499b1e3a make the wait_ready loop use pcic_delay() (thus tsleep) too for cards
that take a while to become ready
2000-01-25 19:38:18 +00:00
thorpej 6aca67041c Add a chip type for the Xircom X3201-3, and centralize the declaration
of the chip names array.
2000-01-25 19:29:17 +00:00
mycroft 3f72e2e3f9 Oops; fix a bug in the previous:
If one entry has the DL10019 bit set and another does not, don't fail
immediately if the checksum doesn't work.
2000-01-25 18:04:07 +00:00
augustss b9a4fe55b5 Switch the HSE and HCPE messages. Pointed out my mycroft. 2000-01-25 17:31:05 +00:00
itojun 9d17b2ca6a bring in stabilization codes in freebsd PAO/bsdi cnw driver.
- link integrity bit check.
- don't send too many packets, add some delay between them (this one is
  not enabled by default - try it if you see performance problem on
  heavy traffic)
2000-01-25 16:48:47 +00:00
thorpej c02060ba9b Regen. 2000-01-25 15:44:21 +00:00
thorpej d1c481fc31 Fix a typo. 2000-01-25 15:43:59 +00:00
mycroft e33c595472 Do a CARDBUS_BM_ENABLE just to be sure. 2000-01-25 15:29:43 +00:00
joda 492bfe70f3 get the device name from pcidevs instead of having a list here 2000-01-25 14:34:24 +00:00
augustss 0335569abc Make it compile even if you leave out the ucom attachment. 2000-01-25 13:56:23 +00:00
augustss a27ee91364 Remove an item. 2000-01-25 13:27:07 +00:00
augustss f0ebd281e5 Add done method for root control transfers. 2000-01-25 12:06:21 +00:00
augustss 73ce2abd33 Make sure PIRQD enable bit is set. From FreeBSD. 2000-01-25 11:26:06 +00:00
haya dccf05f858 Do pccbb_chipinit() after YENTA register space allocation.
Add TI PCI 1451 PCI-CardBus entry.
2000-01-25 09:36:43 +00:00
enami b1f85ee905 Don't put leading space, otherwise diskerr() prints unnecessary space
like this:
wd0h:  aborted command reading fsbn 650256 of 650256-650271 (wd0 bn 839056; cn 888 tn 13 sn 17), retrying
2000-01-25 09:33:12 +00:00
pk 855fe23671 Prevent possible wayward loop. 2000-01-25 09:30:00 +00:00
enami 5cb9984dd0 Replace long delay with sleep. 2000-01-25 09:17:35 +00:00
enami 012a23a770 Use config_pending and let the kernel thread to attach a card even on boot. 2000-01-25 09:14:27 +00:00
haya f18e32d670 Regen. 2000-01-25 09:06:50 +00:00
haya 7b4d7aaba1 Add TI PCI 1451 PCI-CardBus bridge. 2000-01-25 09:04:03 +00:00
augustss beaf3d82fc Ooops, add another ucom file. 2000-01-25 08:46:00 +00:00
augustss a2b1ac707a Split the umodem driver into two parts: the part that emulates a tty over
two bulk pipes, and the setup and status fiddling goo.
This allows the former part to be shared by other drivers that need to
look like a tty.
2000-01-25 08:12:58 +00:00
mycroft 509c38cc44 Regen. 2000-01-25 08:07:14 +00:00
mycroft 6a4d06f322 Use the Ethernet vendor ID to differentiate multiple cards with the same
vendor,product pair.  (Yuck.)
2000-01-25 08:06:49 +00:00
jlam 03ebb087f7 Regen. 2000-01-25 06:53:26 +00:00
jlam 4d836ce7f2 Fix product code for Aironet PC4800. Should be 0x0007. 2000-01-25 06:52:54 +00:00
chopps b5064330de The cfe is initialized to the default entry, when a table entry value
is present don't OR in the flags with the defaults, replace them.
2000-01-25 06:36:17 +00:00
chopps b50b01e020 Don't enable the interrupt until after we cycle the power, disable
interrupt at disable, and make this code look more like the std pcic
code.  From Mycroft and I.
2000-01-25 06:16:34 +00:00
chopps 8c090e4862 set havenet to 0 when we are switching between operating modes and only
after association in ifrastructure mode.  Also, deal with roam start
and rejoin net commands.
2000-01-25 05:32:28 +00:00
thorpej be3c43687c Make sure the latency timer is set to a reasonable value.
From Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>.
2000-01-25 03:44:27 +00:00
thorpej c4d8a60bac Handle Cobalt Networks interfaces, which are 21143 pass 4.1 devices
with a simple (MAC address only) SROM format.

From Soren S. Jorvang <soren@wheel.dk>
2000-01-25 03:23:56 +00:00
thorpej 8f7ad1f798 When checking for a non-standard address ROM format, allow the
Cobalt Networks address ROM through.

From Soren S. Jorvang <soren@wheel.dk>
2000-01-25 03:14:12 +00:00
ad ea0751f1aa Finish with fixing the SOFTCURSOR stuff. 2000-01-25 02:44:03 +00:00
sommerfeld 43311a870f Regen 2000-01-25 01:17:40 +00:00
sommerfeld 97597e1d12 Add ID for BayStack 660 (DS version of 650) 2000-01-25 01:15:06 +00:00
enami 7acb650645 - fix comment style/indentaion.
- add comment to refer aic_pcmcia_enable.
2000-01-24 23:14:23 +00:00
chopps 7d55178466 support switching to/from adhoc/infrastructure mode with media opt.
fill in 802.11 correctly for 802.11 infrastructure.
code not verified with base station yet.
2000-01-24 22:05:53 +00:00
thorpej e2e27455dd Use config_pending. 2000-01-24 18:35:51 +00:00
thorpej 0c93dded4a Use config_pending. Addresses kern/9247. 2000-01-24 18:34:44 +00:00
joda 7ac1ad97ba The TI 2030 is a PCI-PCI bridge and doesn't belong here 2000-01-24 15:51:59 +00:00
joda 4b45d02e15 regen 2000-01-24 15:50:16 +00:00
joda a8308ddfd4 TI PCI2030 is a PCI-PCI bridge 2000-01-24 15:49:50 +00:00
enami 29ffb365e2 Use format_bytes to convert drive capacity into human familier string (like
sd.c does).
2000-01-24 14:51:07 +00:00
augustss bbd7b89f19 Recognize Linksys USB10T. 2000-01-24 08:47:43 +00:00
augustss 50f87c16d8 Regen. 2000-01-24 08:44:33 +00:00
augustss 46ada10a40 Add Linksys USB10T. 2000-01-24 08:44:07 +00:00
matt 7b17d59536 Revamp the VAX interrupt handling code. Make it compatible with all the
other ports.  Clean up some things.
2000-01-24 02:40:28 +00:00
augustss c0214682f7 Add missing \n in attach message, and add a little more information. 2000-01-24 01:32:00 +00:00
chopps 9704db4fc4 add driver for raylink/aviator wireless 802.11 FH 2Mbps cards, currently only
tested with aviator 2.4
2000-01-23 23:59:21 +00:00
chopps 1e33763b41 regen 2000-01-23 23:56:58 +00:00
chopps 7527798475 WebGear->Raytheon 2000-01-23 23:55:45 +00:00
soda 3d14a7c591 kluge to make this work with NEC M403 (arc/magnum). 2000-01-23 21:06:01 +00:00
aymeric 8ac52796d5 add right casts to printf bus_space parameters 2000-01-23 20:44:04 +00:00
tsubai 1ef6ee50b9 Regen. 2000-01-23 09:55:40 +00:00