summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nxe.c
AgeCommit message (Expand)Author
2009-06-02replace custom macro sizeofa() with nitems()Reyk Floeter
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
2008-11-23sizeofa -> nitemsDavid Gwynne
2008-10-29dlg says "well, that is embarassing"Theo de Raadt
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
2008-05-05Correct defines for NXE_DB_PEGID_RX|TX. OK dlg@Claudio Jeker
2007-10-15enable ADDMULTI and DELMULTI in the ioctl handler now that the thtDavid Gwynne
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
2007-08-27start implementing the rx code. this puts pkts and descriptors onto theDavid Gwynne
2007-08-24enable interrupts when the interface comes up.David Gwynne
2007-08-24this is what the interrupt handler will look like. there'll be some addedDavid Gwynne
2007-08-24the chip has three rx rings, one for normal packets, one for jumbos, andDavid Gwynne
2007-08-24the ring sizes are reprresented by 32 bit fields in the context descirptor,David Gwynne
2007-08-23implement the completion half of the tx path. the driver keeps track ofDavid Gwynne
2007-08-23configure the NIU to rx packets that will fit into the mbufs we willDavid Gwynne
2007-08-23wrap writes to the doorbell register.David Gwynne
2007-08-23the first read or write in the crb space after you switch the windowsDavid Gwynne
2007-08-23program the niu with the mac address in the right order.David Gwynne
2007-08-23tweak the register macros a bit. add macros for the NIUs port registersDavid Gwynne
2007-08-15oops, forgot the print the intr string on attachDavid Gwynne
2007-08-15hook the interrupt upDavid Gwynne
2007-08-15implement nxe_start. this is enough to put packets on the wire. the sglDavid Gwynne
2007-08-15program the mac control thing according the the multicast or promiscDavid Gwynne
2007-08-15program the lladdr when the chip is brought up.David Gwynne
2007-08-15sync all the bits for use by the hardware, and then point the chip at them.David Gwynne
2007-08-15when the interface is brought up allocate all the things that are neededDavid Gwynne
2007-08-15allocate pkt lists when the interface is brought up.David Gwynne
2007-08-15here are the tx, rx, and status (rx completion) descriptors used in the ioDavid Gwynne
2007-08-15move the firmware to the right state before we start allocating everythingDavid Gwynne
2007-08-15lock accesses to the ioctl handler.David Gwynne
2007-08-15this code definitely uses queue.hDavid Gwynne
2007-08-15tell the ioctl handler to call nxe_up/down/iff at the right times. theyDavid Gwynne
2007-08-15code to allocate, free, sync, and iterate over rings. this is based looselyDavid Gwynne
2007-08-15steal pkt handling from tht. this lets us keep track of mbufs when theyreDavid Gwynne
2007-08-15implement link state monitoring. you have to poll the firmware to see theDavid Gwynne
2007-08-15hook up the ether and ifmedia layers. you can see nxe in ifconfig outputDavid Gwynne
2007-08-15hook a kernel sensor up to the temp register on the chip. poll out of aDavid Gwynne
2007-08-15start the init of the firmware. it can take a long time, so we start it inDavid Gwynne
2007-08-15pull my wrapper around single segment dma allocations in. its got to be atDavid Gwynne
2007-08-15white space fixesDavid Gwynne
2007-08-15define the rest of the registers i know about: the interrupt registers,David Gwynne
2007-08-15fetch the user info off the board. the lladdr and firmware version areDavid Gwynne
2007-08-15we're a nic, so we need the arpcom and ifmedia structs in our softcDavid Gwynne
2007-08-15read the board information off the flash. check it, and stash what type ofDavid Gwynne
2007-08-15provide a map of the board type the flash memory will tell us we are to theDavid Gwynne
2007-08-15code to unmap the register windows if something in attach goes horriblyDavid Gwynne
2007-08-15list where different things lie in the flash.David Gwynne
2007-08-15we're going to spend most of our time in crb window 1, so move the chipDavid Gwynne
2007-08-15move the mapping of the registers out of attach and into their own functionDavid Gwynne