summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2006-07-21properly report errors thru scsi layer and not bio that will be overwritten ↵Michael Shalayeff
later by scsi no no error; tested by mesel and nate@
2006-07-18modify interrupt handlers to exit early and return 0 on shared interrupts.Damien Bergamini
pointed out by deraadt@
2006-07-16Use a global variable for the console ibm561 state, and use it when theMiod Vallat
real device attach, instead of using malloc (we can not use malloc at console initialization time). This gets rid of the following stack offense: /usr/src/sys/dev/ic/ibm561.c: In function `ibm561_cninit': /usr/src/sys/dev/ic/ibm561.c:193: warning: stack usage is 4768 bytes
2006-07-15set the tags on the scsi command according to what the midlayer says theyDavid Gwynne
should be.
2006-07-15have a go at configuring spi variants to only talk to the devices at theDavid Gwynne
lowest possible speeds during inquiry and attach. some devices, like tapes and enclosures, dont like being probed at high speeds and can attach as weird things. this seems to help those devices.
2006-07-11put CRC error message under GEM_DEBUG. this just spews out like crazyBrad Smith
on a heavily loaded hub.
2006-07-09I don't think we're talking about animals in here, soMichael Knudsen
s/wether/whether/g.
2006-07-09In ne2000_detect(), temporarily mark the dp8390 subpart as inactive, so thatMiod Vallat
we ignore interrupts; this allows unplugging a card when the probe gets stuck without panicing.
2006-07-09spacingDavid Gwynne
2006-07-09enabling interrupts doesnt deserve an XXX. i think we want to do that.David Gwynne
2006-07-09implement firmware upload. this frees up memory on some controllers so theyDavid Gwynne
can do more io at a time. tested on the onboard controllers of a dell 2850 (which can do it) and a pci controller on my home box (which doesnt). this was the last feature mpt had that mpi was behind on.
2006-07-09missed a bit of the fw upload stuffDavid Gwynne
2006-07-06get rid of the unused sgl types (and the XXX on the one we actually doDavid Gwynne
use). add the fw upload messages and its context element.
2006-07-06fix debugging stuffDavid Gwynne
2006-07-06after walking the attached devices and running ppr against them, then fetchDavid Gwynne
the ioc page 3 for a list of all the physical disks behind any configured volumes and run ppr against them too. raid volumes on scsi mpi is fast now.
2006-07-06do not stash pages 2 and 3 (the volume and physdisk pages respectively)David Gwynne
of the ioc config in the softc. instead, we only walk page 2 when we get the raid config and mark each disks scsi_link structure with the SDEV_LOGICAL flag when we find volumes. while there we mark this instance of the driver as being capable of doing raid so later on we can conditionally hook up bio. when we walk the devices attached to mpi to do ppr, we now skip the logical disks.
2006-07-06stash a pointer to the scsibus attached to us so we dont have to walk theDavid Gwynne
device tree all the time.
2006-07-06Write the mac address into the registers CORRECTLY!Dale Rahn
2006-07-05check if the requests for the config pages were completed successful,David Gwynne
rather than just completed.
2006-07-03- re_attach(): Use bus_dma* directly instead of calling re_allocmem().Brad Smith
- re_attach(): Free bus_dma* resources if attach fails. - re_newbuf(): Remove unnecessary error check. - re_encap(): Better error handling. - re_start(): Drop the packet if there are not enough TX descriptors. From NetBSD
2006-07-02put writing of RL_IDR0 and RL_IDR4 back to how they should be.Brad Smith
2006-07-01fix the hw rev id for the 8168 and add the id for the 8111Brad Smith
From wpaul FreeBSD
2006-07-01(fxp/re)_attach_common -> (fxp/re)_attachBrad Smith
2006-07-01always report the channel as type 802.11b (IEEE802_CHAN_B) in theReyk Floeter
net80211 node wrappers.
2006-07-01update the 802.11 address as well if the interface mac address hasReyk Floeter
been changed by the user, ie. with the ifconfig lladdr command. this also replaces the old wicontrol -m option. this closes pr 5159 from peter philipp at freenet dot de.
2006-07-01add the raid physical disk config pages. fix the macros in the raid volumeDavid Gwynne
pages while here.
2006-07-01add the raid volume configuration pages.David Gwynne
2006-07-01man, i suck. when i split one of the dwords up in the io command i got theDavid Gwynne
location of the commands direction wrong. somehow this didnt affect the 1030 chip i was testing on, but it borked vmware and my fc controller. i guess the 1030 was using the cdb to figure out the direction. shifting the direction field into the right place fixes things. found by Jason Crawford, tested by brad@
2006-06-30Unbreak the tree; cast the result of sizeof() to u_int32_t before passing itMark Kettenis
to htole32(). "go for it" miod@
2006-06-30newer alc codecs have revision in the low bits; pt out by jasperMichael Shalayeff
2006-06-30tabs, not spacesDavid Gwynne
2006-06-30add mpi_inq. this is a custom io function that does an inquiry againstDavid Gwynne
either a normal target, or against a physical disk using the raid passthru command. it is necessary since the normal io path can only be used by the midlayer, and only against normal targets. this will be used for ppr against the disks in raid volumes on scsi controllers. tested by marco@
2006-06-30- add a disable argument for re_stop.Brad Smith
- call mii_down in re_stop.
2006-06-29remove mpt. it has since been replaced with mpi, which is a smaller andDavid Gwynne
cleaner driver that supports more hardware.
2006-06-29Finally fix the EEPROM reading code so that we can access the EEPROMs on allBrad Smith
devices. In order to access the EEPROM, we must select 'EEPROM programming' mode, and then set the EEPROM chip select bit. Previously, we were setting both bits simultaneously, which doesn't work: they must be set in the right sequence. Always obtain the station address from the EEPROM, now that EEPROM reading works correctly. Have re_tick() check for link state and set rl_link appropriately, if there is a link then also check if the send queue is empty and if not then try to send any queued packets. Have re_start() check for the lack of link state or if OACTIVE is set, if so then return. From FreeBSD
2006-06-29split some fields up in the spi port and dev config pages. makes the pprDavid Gwynne
code easier since we dont have to byteswap and shift stuff around so much. no functional change though.
2006-06-29tweak to make this easier for me to readDavid Gwynne
2006-06-29theres a ton of 32bit fields in mpi messages that have subfields that lieDavid Gwynne
on byte boundaries. so rather than byteswappping and bitshifting the values in these subfields around we can break them up into byte fields and access them directly. this breaks up the control field in the scsi io command.
2006-06-29oops, fix the order of the configuration fields in mpi_cfg_spi_port_pg1David Gwynne
2006-06-28rewrite how the sensors are created. previously they would wait for io toDavid Gwynne
be done on the logical disks so ami_scsi_cmd can stash the name of the device doing the io. we now walk the device tree after the logical disks are attached and use the names of ami's child devices. ok marco@
2006-06-28put proto where it is because dlg says he is a dodoTheo de Raadt
2006-06-27unbreak builds without BIO by moving the sensor setup back under its ifdef.David Gwynne
i could move the shared code that the sensor and bio paths use, but this would add bloat i think. found by _mx, fix by deraadt@
2006-06-27add the net80211 hostap options "nwflag hidenwid" for hidden SSID modeReyk Floeter
and "nwflag nobridge" to prevent inter-station communications. "hidenwid" will also work with wi(4) to replace the old -E 3 option of wicontrol. ok damien@ jmc@
2006-06-27add some more net80211 compatibility glue:Reyk Floeter
- support scanning and node listing ("ifconfig -M"). this will replace wicontrol -L in station mode and wicontrol -l in hostap mode. - allow to print the BSSID tested by quite a few people ok jsg@
2006-06-27we can do the sensors without BIODavid Gwynne
2006-06-27we cant do bioctl or sensors on broken controllers since they dont have theDavid Gwynne
spare ccbs for it and they dont understand the megaraid commands we use in those paths. initially found by jared rr spiegel
2006-06-27- Make re_diag() off by default.Brad Smith
- Update comment to mention newer chip revisions. From wpaul FreeBSD
2006-06-27new HW revs, EEPROM commands, softc fields, some macros and device ids.Brad Smith
From wpaul FreeBSD
2006-06-27- add fixup code in the RX path for strict alignment architectures.Brad Smith
- add a workaround for reception of Jumbo frames. - don't try to adjust alignment on non-strict alignment architectures, this resolves an issue with the PCI Express adapters. From FreeBSD ok drahn@
2006-06-27__attribute__((__packed__)) -> __packedJonathan Gray