summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2006-12-18Add support for pci-based sti devices. ok mickey@Miod Vallat
2006-12-18delete extra gooTheo de Raadt
2006-12-18Format dmesg line according to our rules and make sure the firmware idMarc Balmer
string is '\0' terminated, plus some KNF. from deraadt
2006-12-17Remove unnecessary <dev/wscons/wscons_raster.h> inclusion.Miod Vallat
2006-12-17mbg(4), a driver for Meinberg Funkuhren time signal station receiversMarc Balmer
"Made in Switzerland" Currently, the DCF77 PCI32 receiver card is supported I have to mention the outstanding support from Meinberg, not only did they give me the hardware, docs, and reference source code, but they even call me back to explain the details of their hardware to me. If only the wireless manufacturors were that cooperative... ok claudio, ok mglocker, "commit it when ready" deraadt
2006-12-17add a little spacing here, to please mglockerMarc Balmer
2006-12-17regen.Marc Balmer
2006-12-17Add Meinberg Funkuhren GmbHMarc Balmer
2006-12-17Add/modify some comments. From Brad.Kenneth R Westerback
2006-12-16Enable RAM buffer for the second port too; makes dual port cards work soMark Kettenis
reenable attachment of the second port on cards that have it.
2006-12-16Process status descriptors for port B. Fix two typos while I'm there.Mark Kettenis
2006-12-15Process status descriptors that have SK_Y2_STOPC_OWN bit set instead ofMark Kettenis
looking at SK_STAT_BMU_PUTIDX; makes Yukon-2 XL rev. A3 work.
2006-12-15regenMark Kettenis
2006-12-15Add e few entries found on a HP DL585 G2.Mark Kettenis
2006-12-14Make pci subsystem aware of domains. Each host bridge gets assigned a uniqueMark Kettenis
domain number such that we can distinguish between busses with the same bus number that are behind different host bridges. Domains can be accessed by using different device nodes. ok deraadt@
2006-12-14remove an ugly macro that made claudio sad. luckily it wasnt being used.David Gwynne
2006-12-12regenMichael Knudsen
2006-12-12Clarifying a few pcidevs entry names based on names foundMichael Knudsen
in a much more recent Marvell Linux sk98lin driver. From brad@. ok me and kettenis (via mglocker)
2006-12-12ignore bars which are 0; ok kettenisTheo de Raadt
2006-12-12small cleanup after feng shuiDavid Gwynne
2006-12-12after allocating the ahci_port bits, stash it in the softc rather thanDavid Gwynne
drop it. im guessing at some point we'll want to use each port, knowing where they are can help.
2006-12-12feng shuiDavid Gwynne
2006-12-12for each port the controller says is hooked up, go and allocate ourDavid Gwynne
ahci_port structs for it.
2006-12-12start implementing the bits that allocate the per port structures and theirDavid Gwynne
ccb lists. this is missing handling of the dmamem each port needs to manage, but that can wait till i figure out how it fits together. insane stuff.
2006-12-12remember our dma tag. be able to do dma is like, really cool. man.David Gwynne
2006-12-12add functions to get and put ccbs out of each ports command free list.David Gwynne
2006-12-12add wrappers for reading and writing a ports registers called ahci_pread,David Gwynne
and ahci_pwrite. these will use an io handle into a window of the controllers register space that can be created with bus_space_subregion, and which is stored in the ahci_port struct.
2006-12-12introduce the command control blocks, and the concept that they are managedDavid Gwynne
per port rather than as a big list for the whole controller. the softc has an array of pointers to a struct that manages all the shizz relevant to a particular port. when we map the controllers ports, we'll allocate these as needed. if the port isnt implemented, we leave its pointer in the softc null and use that to decide if a drive might be there or not, rather than lookup up the PI register all the time. a comparison has to null has to be cheaper than doing bit operations, surely.
2006-12-12stash the number of commands each port can do in the softcDavid Gwynne
2006-12-11use oct bits consistently in the format string for %b. pointed out byDavid Gwynne
deraadt@
2006-12-11On i386, swizzle interrupts for devices for which we don't have explicitMark Kettenis
inetrrupt routing information. ok deraadt@
2006-12-11do not bus_space_map devices which are at address 0; ok kettenisTheo de Raadt
2006-12-11oops, we want to return when everything goes well in ahci_attach, ratherDavid Gwynne
than fall through to the bits that do cleanup when an error occurs.
2006-12-11remove the argument to all the port registers that say which port you wantDavid Gwynne
to address. instead make them simply offsets from the start of a ports register space, which is something we can easily set up with bus_space_subregion. this should make the code a lot easier to read later on.
2006-12-11dont stash the implemented ports map, im going to use a differentDavid Gwynne
mechanism to figure out if a port is usable or not later on.
2006-12-11define the command structs used by the ports.David Gwynne
this stuff isnt endearing me to ata at all, and apparently ahci is a good ata controller. the command path looks way more complicated than it needs to be (or maybe i am used to really good scsi controllers, i dont know). a lot of the terminology seems annoyingly different just for the sake of being different. i mean, what is the advantage of calling a scatter gather lement a "physical region descriptor table"? noone else calls it that. there's a lot of weird stuff in here. blah.
2006-12-11pull the wrapper for allocations of dma mem with a single segment in fromDavid Gwynne
arc, which got it from mpi, which got it from ami. grange is right, we should look at pushing it back up into the bus_dma api somewhere.
2006-12-11oops, too far for the match/attach funcsDavid Gwynne
2006-12-11give the function prototypes a bit more room for the return type.David Gwynne
2006-12-11Only disarm the watchdog if we really want to, not before each re-trigger.Marc Balmer
2006-12-11Shorten the code, but no functional changes.Marc Balmer
2006-12-11per port register definitionsDavid Gwynne
2006-12-11fix %b format string now that deraadt fixed printfDavid Gwynne
2006-12-11stash the field showing which ports are hooked up, and dump it if verboseDavid Gwynne
debug is on
2006-12-11if ahci debug and verbose output is enabled, then dump the cap register.David Gwynne
this also fixes a few reg definition errors i found after having them dumped. something seems really screwy with %b. i cant select the 32nd bit position using \x20 or \040, so im using \32 and the rest are octal (\oNN). hex (\xNN) seems really really borked, and the compiler doesnt like eating some of the dec ones (eg, \8BITNAME).
2006-12-10regenDimitry Andric
2006-12-10Add ATI RS200M AGP.Dimitry Andric
2006-12-09sigh, split the bus space mapping and interrupt hookup apart so i canDavid Gwynne
reset the controller and clear interrupts off it before doing the hookup.
2006-12-09reset the hba and set the enable bit.David Gwynne
2006-12-09figure out which revision of ahci we're trying to use and print it out.David Gwynne
if we don't know about it, bomb out.