summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2002-10-13do not flush cache here, better support for intrhook, increase number of ↵Michael Shalayeff
transmit cmds and properly align the rings
2002-10-11pad keys of size != RC4KEYLEN or RC4KEYLEN/2 with zero; noticed and tested ↵Markus Friedl
by millert@
2002-10-11Stash the value of letoh16(ver.wi_ver[0]) in a variable so we don'tTodd C. Miller
evaluate the same thing for each loop iteration in wi_get_id(). [ previous commit contained unrelated changes and has been removed ]
2002-10-11Sigh, we can't just put the htole16() in the WI_CARD_IDS macroTodd C. Miller
since gcc doesn't seem to evaluate htole16() of a constant at compile time after all. Noticed by deraadt@
2002-10-10Make wi_get_id() table driven, similar to NetBSD and FreeBSD butTodd C. Miller
make the table itself a #define so we can reuse it in wicontrol. Also add a bunch of chip IDs from NetBSD/FreeBSD. mickey@ OK
2002-10-09Remove trailing '\n's from panic messages.Kenneth R Westerback
Started by a commit to siop from provos@netbsd.org. ok miod@ millert@
2002-10-04Limit the TX key to a valid range; imp@Todd C. Miller
2002-09-28- disable if_timer handling (there's a bug which causes this not to getJason Wright
reset, causing watchdog timeouts). The interfaces work fine, but the timer doesn't get reset correctly. - make IFF_SIMPLEX only set iff the media is IFM_FDX (prevents ip6 from seeing it's packets and thinking another machine with the same mac is on the wire when running half-duplex); from NetBSD.
2002-09-23make the leds blink (on those machines where we have 'em).Michael Shalayeff
simple logic is to light up the led in the intrhook and dim in the heartbeat always, makes a believable impression. upper four bits represent a cpu usage w/in the last Hz/8 made up from the cp_time[] times.
2002-09-22Update ifp->if_opackets correctlyJason Wright
2002-09-17add ad1981a id; from hunter@dg.net.uaMichael Shalayeff
2002-09-17deal w/ the dma in a special thread to follow the busdma semantics. this ↵Michael Shalayeff
fixes panics on unaligned physio; w/ help and testing from daniel@lucq.org
2002-09-16Resync siop with NetBSD. Make strong effort to minimizeKenneth R Westerback
differences, undoing whitespace, spelling, etc. changes and adopting the NetBSD code instead of equivalent home grown code for PPR negotiation, etc. siop.c 1.21 -> 1.64 siop_common.c 1.12 -> 1.30 siopreg.h 1.7 -> 1.13 siopvar.h 1.13 -> 1.18 siopvar_common.h 1.10 -> 1.21 ncr53cxxx.c 1.5 -> 1.10 siop.ss 1.12 -> 1.17 siop_pci.c 1.8 -> 1.11 siop_pci_common.c 1.6 -> 1.17 siop_pci_common.h 1.2 -> 1.4 Many fixes, add 1010-66 support, restructure things to prepare for addition of esiop, osiop and oosiop drivers. tested on various archs by art@, millert@, wilfried@, jason@, Dan Weeks. ok deraadt@.
2002-09-15make it at least compile; parts from maurice@amaze.nlTheo de Raadt
2002-09-15Add a license from the author Timo Rossi <trossi@co.jyu.fi>Artur Grabowski
2002-09-14Various fixes and cleanups in the cy driver.Artur Grabowski
Finally my "Cyclades Cyclom-8Y" works correctly. Cleanups: - no more stupid arrays, we have softc structs, use them. - no more global poll timeout that walks an array, timeouts are now cheap, one poll per softc. - sc_dev.dv_xname is the correct thing to print in diagnostic printfs. - don't have bus-specific code in the generic attach for @#%$! sake, it took 20 seconds to fix (I suspect that the workaround took much more time to write). - spltty, not splhigh. - use pci_mapreg_map, not pci_{io,mem}_find + bus_space_map. - use defines, not magic constants in a few places. - KNF in a few places (much more work needed). Now the interesting parts: - when handling the interrupt, don't just ignore it when the tty is not open. Read and discard the data. If we don't read it, the card will interrupt again and again and again and ... (inspired by NetBSD). - actually enable interrupts on PLX9050 - From FreeBSD: "Work around a PLX9050 bug that causes system lockup in certain systems" deraadt@ ok
2002-09-12o break up wi_pci_attach() into device-specific parts for better readabilityTodd C. Miller
o kludge around a problem with Netgear MA301 hanging when booted w/o a card. o better card detection w/ PLX adapters o correct the info in some comments mickey@ OK
2002-09-10no need for pragma here.Federico G. Schwindt
2002-09-09Correctly printf on attach.Artur Grabowski
2002-09-08no , after last element in a enumTheo de Raadt
2002-09-06Share interrupts nicely. Add tag type.Steve Murphree
2002-09-05Use the value from AUDIO_CTRL, later to be or'ed with VRM or VRA, notFederico G. Schwindt
AUDIO_ID which contains what the codec supports, and do it only if the codec supports VRM or VRA. discussed with mickey@ a while ago.
2002-09-04don't dereference ecb on default case, it's uninitialized.Federico G. Schwindt
2002-08-30plug mbuf leak.Federico G. Schwindt
2002-08-30only do copyout() if wi_get_debug() returned 0.Federico G. Schwindt
2002-08-28 - Fix one typo (instead of two disable_rx, one disable_rx and one disable_tx)Artur Grabowski
- Instead of setting OACTIVE on the interface when encap fails and never clearing it, set a 2 second timer instead and hope that the memory situation will improve. This stops the lockups of the interface when memory is running low. jason@ ok.
2002-08-22simplify multicast setup on the 3c905 (pre-B/C, etc)Jason Wright
2002-08-17If the HBA is already 'touched', still set maxluns.mjacob
Don't whine if the name server returns "no such registered type" when we ask it for all FC-SCSI objects. Fix a few typos. If we get a f/w crash, if ISP_FW_CRASH_DUMP is *not* defined, do the isp_reinit inline, otherwise, let the platform isp_async drive things. This is because, typically, the platform isp_async will freeze things and wake up a thread to do the actual f/w crash dump (really *can't* be done on the interrupt stack- the 23XX has one move on the order of 500KBytes of crash dump data). Set up to handle default framsize && exec_throttle and iid/loopid overrides. If we're using ancient (pre 1.17.0) 2100 f/w (for the cards that cannot load f/w images > 0x7fff words), set ISP_FW_ATTR_SCCLUN. We explicitly don't believe we can find attributes if f/w is < 1.17.0, so we have to set SCCLUN for the 1.15.37 f/w we're using manually- otherwise every target will replicate itself across all 16 supported luns for non-SCCLUN f/w. Correctly set things up for 23XX and either fast posting or ZIO. The 23XX, it turns out, does not support RIO. If you put a non-zero value in xfwoptions, this will disable fast posting. If you put ICBXOPT_ZIO in xfwoptions, then the 23XX will do interrupt delays but post to the response queue- apparently QLogic *now* believes that reading multiple handles from registers is less of a win than writing (and delaying) multiple 64 byte responses to the response queue. At the end of taking a a good f/w crash dump, send the ISPASYNC_FW_DUMPED event to the outer layers (who can then do things like wake a user daemon to *fetch* the crash image, etc.).
2002-08-17Add ISPASYNC_FW_CRASH case.mjacob
2002-08-17isp_target_notify changes what it returns for success.mjacob
2002-08-17Set default command count to 'unmonitored'. Set inotify to 16.mjacob
2002-08-17Add ICBZOPT_ENA_OOF and FC4_FC_SVC defines.mjacob
2002-08-17Reorder the lportdb dibfields. Add some more CFG params.mjacob
Add ISPASYNC_FW_DUMPED, ISPASYNC_FW_RESTARTED async events. Add ISP_FW_NEWER_THAN macro- makes the code easier to read. DEFAULT_FRAMESIZE and DEFAULT_EXEC_THROTTLE macros.
2002-08-13change WI_PORTTYPE_AP -> WI_PORTTYPE_HOSTAP to match FreeBSD and NetBSD.Todd C. Miller
The reason for this is that it is possible in the future to have wi(4) be a real AP using the AP tertiary firmware. mickey@ OK
2002-08-08Fix IFF_PROMISC setting optimization. The point is to avoid theTodd C. Miller
wi_init() if only IFF_PROMISC status has changed. There is no need to change anything if we are in HostAP mode since wi_init() has already turned off the hardware promisc bit when we entered HostAP (HostAP already implies promisc behavior). Noticed by imp@, OK by mickey@
2002-08-07Hrmph, part of the logic was correct: turn off if_timer when all descriptors ↵Jason Wright
are found to be empty.
2002-08-07fix if_timer handling:Jason Wright
- only set it to non-zero when at least on packet is enqueued - zero it if we tx'd at least one packet
2002-08-06be sure to unmap/deallocate buffers when hme_stop() is calledJason Wright
2002-08-02Do correct bounds checking in get/set/put cmap routines. A few ofTodd C. Miller
these check were already OK but have been modified for consistency. Problem found by Silvio Cesare.
2002-07-31Grammar.Thomas Nordin
2002-07-31mop up after federico who is not capable of comitting the same diffs he ↵Michael Shalayeff
sents for testing or compiling code before he commits it even
2002-07-29switch to ether_input_mbuf(); mickey@ tested and ok.Federico G. Schwindt
2002-07-28minor things from ac97 rev 2.3; mickey@ okFederico G. Schwindt
2002-07-20If we call siop_intr manually, make sure it's protected by splbio.Artur Grabowski
My filesystem has been chopped to pieces.
2002-07-19a few more comments and debugs, other cosmetic stuffMichael Shalayeff
2002-07-16remove prototypes that now live in if_wivar.h.Federico G. Schwindt
2002-07-12support for the agp gart on various agp chipsets.Michael Shalayeff
only i810 driver was tested though. based on the netbsd's lkm, initially ported by hunter@dg.net.ua and later made into shape by mickey. testing by art@ and millert@ .
2002-07-10use ifp->if_sadl whether possible.Federico G. Schwindt
2002-07-10Use the correct COR offset for pcmcia card; noted by Warner LoshTodd C. Miller
2002-07-10shorten address printoutTheo de Raadt