summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2009-07-21Call timeout_set() from rl_attach, not rl_init(). From Brad.Stuart Henderson
2009-07-19Include 0x4402 in the bbp id mapping table used on olderJonathan Gray
devices. http://bcm-specs.sipsolutions.net/BackPlane agrees.
2009-07-18Remove redundant code for setting the maximum frame receive sizeStuart Henderson
and fix the appropriate code in gem_init_regs(). From Brad, tested by Brad (sparc64), todd@ (macppc).
2009-07-18reorder a switch block, no functional change but reduces the diffStuart Henderson
with FreeBSD. From Brad.
2009-07-18Simplify receive filter handling, from Brad.Stuart Henderson
Tested by Brad on sparc64, todd@ on macppc.
2009-07-18Rewrite the ioctl handling code and the receive filterStuart Henderson
handling to clean up the code and eliminate unnecessary resets. From Brad, promisc tested by Olivier Cherrier, promisc/multicast by me.
2009-07-15Removes the magic bit from re_init() and moves the commonChristian Weisgerber
flag to the top. No change with the actual cplus mode register setting being used with the controllers. From brad@
2009-07-14Silence ``invalid NVRAM header'' message if the NVRAM header is three zeroMiod Vallat
bytes (as encountered on sgi). ok krw@ deraadt@
2009-07-12In a error case in malo_init (e.g. can't load the firmware),Marcus Glocker
always call malo_stop which removes the previously registered interrupt handler from the cardbus interrupt handler chain. Otherwise, since malo_init gets called twice in a error case, our interrupt handler got registered twice and on the next device detach, just the last registered interrupt handler got removed, which leaves one left. That caused a kernel page fault trap as soon our "zombie" interrupt handler got called. Fix a typo while here.
2009-07-12Add some missing GEM_SBUS_CONFIG bits.Mark Kettenis
ok miod@, jsg@
2009-07-11Nuke an '__inline' that upset clang. Multi-line function should notKenneth R Westerback
be inline anyway. Found by jsg@. The last kernel file that clang complains about. ok marco@ jsg@
2009-07-11- Add some new feature flagsStuart Henderson
- Add defines for newer chipsets From FreeBSD via Brad. No functional change, needed for future work. ok naddy@.
2009-07-10RL_HWREV_8168DP can be either RTL8168DP or RTL8111DP, so print both,Stuart Henderson
as done for other RTL8168 HWREVs. From Brad.
2009-07-10Swap the hardware revision IDs for 8169S and 8110S. Agrees with theStuart Henderson
labelling on naddy@'s PCI cards. From Brad.
2009-07-10timeout_add -> timeout_add_msecBret Lambert
ok mglocker@
2009-07-03Support RTL8103E and RTL8168DP which are starting to show up, from brad.Theo de Raadt
OK from kettenis and sthen after the diff was minimized to have no potential impact on other chips.
2009-07-01Add a workaround for the fact that our clocks aren't running during autoconfMark Kettenis
(at least on some of our architectures, including hppa). Since isp(4) keeps track of elapsed time to determine if it should continue to wait for the FC link to come up it would wait very very long. Figured out by krw@. ok deraadt@, krw@
2009-06-29Zap isp_inline.h; it is no longer used.Mark Kettenis
ok deraadt@
2009-06-27Remove debug printfs.Mark Kettenis
ok krw@
2009-06-26If we are going to move to the eeprom-based MAC address finding instead ofTheo de Raadt
CIS-based... some newer devices have the MAC address at offset 8 instead of offset 3. But we can tell by the first three octets, Intel says.
2009-06-26Using information gleamed from the FreeBSD driver, change the MAC addressTheo de Raadt
reading to use the eeprom instead of CIS, and then the Xircom Cardbus cards can work in the expresscard adaptor, as pci devices. ok jsg
2009-06-24Major update to isp driver, mostly from mjacob via FreeBSD.Kenneth R Westerback
Everything that worked before should still work so in it goes. Newer boards (2300, 2400) may now work but are still a work in progress. Thanks to many testers but especially kettenis@ for finding a show stopper bug and stomping it. ok deraadt@
2009-06-22Tidy up promiscuous mode and multicast handling; tested by Simon KuhnleStuart Henderson
and myself. From Brad.
2009-06-11Simplify the ioctl handling code. From Brad.Stuart Henderson
Tested by myself and Simon Kuhnle.
2009-06-11fix potential use of uninitialized value.Charles Longeau
found by LLVM/Clang Static Analyzer. ok marco@
2009-06-11remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok marco@
2009-06-10Remove (unused) CASSERT macro. Whatever it was intended to be used for, itMiod Vallat
caused severe blood damage to laboratory animals. Not to mention swine flu.
2009-06-06- don't mess with assert()/__assert(), use KASSERT() insteadJasper Lievisse Adriaanse
ok jsg@ thib@
2009-06-06Rewrite the SIOCSIFFLAGS ioctl handling code to clean it up a bit andChristian Weisgerber
make it consistent with other drivers. No functional change. From Brad.
2009-06-05%zu is not meant for size_t in the kernel. Change to %lu.Ray Lai
OK miod
2009-06-04Add missing argument to printf statement.Ray Lai
Found with -Wformat. OK dlg
2009-06-04Fix IPv4 rx checksumming for the non-TCP/UDP case. DESCV2 chipsChristian Weisgerber
don't set RL_RDESC_STAT_PROTOID for non-TCP/UDP IP packets, only RL_RDESC_IPV[46]. Also check RL_RDESC_IPV[46] before inspecting the TCP/UDP checksum bits to make IPv6 TCP/UDP checksum offload work intentionally. Gleaned from NetBSD.
2009-06-03make wireless interfaces priority 4 by default. other interfaces remainBob Beck
priority 0. while we are in here make sure we add wi interfaces to group "wlan" in the same way the net80211 stuff already is. this makes dhcp multiple default routes useful on laptops. ok claudio@
2009-06-03put the values direct in the array, otherwise the nested macros are longerTheo de Raadt
than standards permit found & ok by jsg
2009-06-03mjacob took kettenis's r1.44 into FreeBSD and added a tweak toKenneth R Westerback
ensure lvdmode is set. Apply that tweak.
2009-06-03from Brad; I've read and tested it, also reads ok to dlg@.Stuart Henderson
- Further simplify the re(4) receive filter handling and have everything taken care of in re_iff(), eliminating a bit of code from re_init(). - Remove unused if_flags field.
2009-06-02make rl at pci detachable; untested.Jonathan Gray
2009-06-02Make fxp at pci detachable; untested.Jonathan Gray
2009-06-02make dc at pci detachable; untested.Jonathan Gray
2009-06-02let atw at pci be detachable; untested.Jonathan Gray
2009-06-02replace custom macro AR5K_ELEMENTS() with nitems()Reyk Floeter
2009-06-02If a bogus channel is encountered, return an error instead of tryingPhilip Guenthe
to use the -1 flag value as an array index. Found by Parfait. ok reyk@ oga@
2009-06-02change a sizeof() to nitems() because the array subtype is a short.Theo de Raadt
change all the N() macros to our favorite new macro nitems() found by Parfait ok oga guenther
2009-06-02The xl_detach() function is now used by pci code, so it must be in theTheo de Raadt
shared code in case either cardbus or pci varients are not configured.
2009-05-24declare a variable at the start of bwi_dma_free() insteadJonathan Gray
of several times throughout the function, in and outside of a loop.
2009-05-23FALL THROUGH -> FALLTHROUGH to appease lintJonathan Gray
2009-05-18fix reading from e-fuse rom (>= RT3070 only).Damien Bergamini
tested by robert@
2009-05-15TOD clock support for IOC3 flavours with DS174x chips (which are rebadgedMiod Vallat
MK48Txx). Entangled with preliminary changes which will hopefully eventually lead to power(4) attaching on IP30 (but not finished yet).
2009-05-15properly identify the RT3052 radio (dual-band 2T2R) in dmesg.Damien Bergamini
2009-05-11properly set unicast to me mask in MAC_ADDR_DW1 register.Damien Bergamini