summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-03Comment fixes and code tidy-up (whitespace and more consistentStuart Henderson
numeric values) from Brad. No binary change.
2009-08-02timeout_add -> timeout_add_msecBret Lambert
ok mglocker@ jsg@
2009-08-02timeout_add -> timeout_add_msecBret Lambert
ok miod@
2009-07-31timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2009-07-29timeout_add -> timeout_add_msecBret Lambert
ok damien@
2009-07-28timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2009-07-28timeout_add -> timout_add_msecBret Lambert
ok jsg@ claudio@
2009-07-25Fix crash in bwi on armish by properly aligning a 32-bit value. NotKenneth R Westerback
to say it works great yet. Might fix bwi on any other alignment sensitive archs we have. My original hack generalized and made sane by jsg@. Didn't affect operation on my macppc. Problem first noted by ian@ a long time ago. ok jsg@ (whose tree is currently unavailable to commit from)
2009-07-24wrap the kernel specific parts in an _KERNEL ifdef.Jonathan Gray
ok reyk@
2009-07-24Don't include systm.h as it isn't needed and pulls in libkern headers,Jonathan Gray
and as ar5xxx.h is included from athvar.h this made referencing the SIOCGATHSTATS ioctl from userland impossible. ok reyk@
2009-07-23Switch re(4) over to MCLGETI.Mark Kettenis
ok deraadt@
2009-07-23If we initialize miicapabilities, we might as well pass it on when callingMark Kettenis
mii_attach. Spotted by chl@. Fix inspired by looking at the current NetBSD code. Repeated calls for testing went unanswered.
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.