summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2006-04-23Fix an embarrassing pasto that triggered a panic. Reported by henning.Marco Peereboom
ok dlg
2006-04-22Henning reported a crash I can't explain while using the new sensor code.Marco Peereboom
Disable until diagnosed and fixed.
2006-04-22Add support for the Adaptec RAID-On-Chip architecture. This in turnBrad Smith
provides support for the Adaptec 2130S and 2230SLP adapters. From FreeBSD ok dlg@
2006-04-21typoMarco Peereboom
2006-04-21Add mfi_poll and use the new shiny function to setup all the hardware queues.Marco Peereboom
Lots of ideas from the FreeBSD driver.
2006-04-21remove duplicate defines. another find by lint.David Gwynne
2006-04-21remove the ami_inquire prototype. the function doesnt exist and its notDavid Gwynne
used anywhere. thanks lint. thint.
2006-04-20Fix various printf() issues: too many arguments, not enough arguments, argumentMiod Vallat
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@
2006-04-20printf() calls with the format string spanning several lines should not haveMiod Vallat
trailing commas between string chunks, for this has unexpected effects.
2006-04-20Cast unsigned to signed when you want to check for negative values.Miod Vallat
2006-04-20marco hates typedefs as much as i do, so he asked me to clean mfi like iDavid Gwynne
just did with ami. this gets rid of the typedef for the ccb lists. also uses TAILQ_FIRST to get ccbs off the freelist. this is a proactive fix for a lint teary.
2006-04-20return after goto wont be reached, so remove it. found by lint.David Gwynne
2006-04-20get rid of the ccb list typedef. while here switch to TAILQ_HEAD insteadDavid Gwynne
of TAILQ_TAIL when pulling ccbs off the free list since it does less "interesting" things with pointers. changes prompted by lint bitching.
2006-04-20remove some useless code found by lint.David Gwynne
2006-04-20this is the proper fix for krws bug. i feel kinda bad taking the commitDavid Gwynne
from him since he did most of the hard work on it. when marco added the sensor for logical disks he added some extra bits to the softc, but inside an #if NBIO > 0 block. NBIO is set by "bio.h" which was included in ami.c, but not in ami_pci.c which is what is actually responsible for getting the softc allocated. because of this the softc in the rest of the system was smaller than what ami.c needed, so technically it was using unallocated memory. in krws case that unallocated space was filled with garbage, hence his panic. the moral of this story is do NOT put #if inside structs that are passed between different source files. its too easy to have this kind of screwup happen.
2006-04-19Make sure sc_first_poll is initialized to 0 so sensor_task_threadKenneth R Westerback
doesn't blow up on first call to ami_refresh(). There's probably a better fix, but this stops the crashes while that fix is found. ok dlg@
2006-04-18Make output in sysctl pretier.Marco Peereboom
2006-04-18It helps to initialize a queue before usage.Marco Peereboom
2006-04-18Display logical disk status in sysctl. Now one can use sensorsd toMarco Peereboom
monitor disks on ami. Ex.: hw.sensors.0=sd2, logical disk, WARNING, drive, degraded Requested deraadt@ ok dlg@
2006-04-18Actually add ccbs to the queue.Marco Peereboom
Fix the error path for mfi_init_ccb. Alter dmamap for io.
2006-04-17Sprinkle more debug. Remove 64 byte boundary; it doesn't seem to like it.Marco Peereboom
Hack around 64 byte boundary for the frames for now.
2006-04-17Setup ccbs and clean up ccb structure.Marco Peereboom
2006-04-16Oops, make mfi_allocmem always use 64 byte boundaries since frames have toMarco Peereboom
have that alignment. It doesn't matter for the other consumers of the function.
2006-04-16Add frame memory and sglist allocation.Marco Peereboom
2006-04-16Introduce sti_rom_size() which will compute the size of a card's rom, andMiod Vallat
use it instead of duplicating the same logic in 3 places. ok mickey@
2006-04-16Make memory access use macro.Marco Peereboom
2006-04-16typoMarco Peereboom
2006-04-16Add get and put ccb functions. Shuffle some more definitions.Marco Peereboom
2006-04-16Nicer print when context is invalid.Marco Peereboom
2006-04-16Shuffle some #defines.Marco Peereboom
Fix comments. Add human readable enable intrrupt #define.
2006-04-16Add interrupt handler. Idea borrowed from FreeBSD since it is much nicerMarco Peereboom
than the Linux one.
2006-04-16Correctly computed the mac address checksum on big-endian platforms.Miod Vallat
2006-04-16Add skeleton ccb structure.Marco Peereboom
2006-04-15check for IFF_RUNNING being set before calling gem_init().Brad Smith
2006-04-10fix the macro so gem recognizes the Intrepid 2 GMAC.Brad Smith
2006-04-10recognize the Intrepid 2 GMACBrad Smith
2006-04-10under some cases some wi(4) cards freak out and then do not recover.Theo de Raadt
make the driver reset in those cases. this needs testing, which is why it is being commited; from kuethe
2006-04-07Replace bus_space functions with generic ones that do barriers.Marco Peereboom
2006-04-07Add memory allocator functions.Marco Peereboom
2006-04-07Print state in debug. Change return vales to 1 instead of ENXIO.Marco Peereboom
2006-04-07Make a better debug mechanism.Marco Peereboom
2006-04-07Enable mfi_transition_fw() original code from FreeBSD.Marco Peereboom
2006-04-07Add DEVNAME.Marco Peereboom
2006-04-07Add register offsets. Borrowed from FreeBSD.Marco Peereboom
2006-04-06Add fw transition logic.Marco Peereboom
2006-04-06Add structures and defines.Marco Peereboom
Losely based on FreeBSD and Linux code.
2006-04-06Add skeleton driver for MegaRAID SAS.Marco Peereboom
2006-04-06the synchronise cache path is unique in ami in that it uses two megaraidDavid Gwynne
commands to emulated one scsi command. i reuse the ccb and pushed it along the scsi setup path twice. when we do this for asynchronous cache syncs this happens with the timeout: timeout_set, timeout_add, timeout_set, timeout_del. from the looks of the timeout code the repeat of the timeout_set/add part can do really interesting things with the linked list holding all the timeouts. this adds a timeout_del in the middle of the two set/adds so the lists are kept sane.
2006-04-06kudos to djm for finding an embarrassing bug. using the same variableDavid Gwynne
as a counter for both an inner and outer loop is not good(tm). ok marco@
2006-04-05Add support for big endian archs. tested by jaredy@ and ok jsg@Kurt Miller