summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-08-23configure the NIU to rx packets that will fit into the mbufs we willDavid Gwynne
allocate for it, rather than the default of 1600.
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
tends to be junk, except in the pci regs for some reason. read the crb window register back after setting it to force the junk to go away. this fixes some really weird issues i had.
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
which are useful to see whats happening on the wire.
2007-08-23allow RSTs with th_seq == seqlo +- 1, reduces the amount of 'loose state'Daniel Hartmeier
messages, add 'dir=' part to 'loose state' message, ok henning@, markus@
2007-08-23"correctly" activate high-power charging on (hopefully) all devices,Theo de Raadt
based on work in barry/bcharge; tested on a few units. still not tested on pearl-style units... if someone has one, contact me please
2007-08-23syncTheo de Raadt
2007-08-23more berry device typeTheo de Raadt
2007-08-23syncTheo de Raadt
2007-08-23blackberry pearlTheo de Raadt
2007-08-22Add bus_space_vaddr to i386 arch.Marco Peereboom
Comments and ok kettenis, art & miod
2007-08-22add a ieee80211_get_txkey() function to determine the key to use forDamien Bergamini
transmitting a frame to a given node. change ieee80211_encrypt() so that it now takes the key as parameter. this change is required because drivers doing hardware crypto need to know what key is being used.
2007-08-22- add k_rxmic and k_txmic fields to struct ieee80211_key to store theDamien Bergamini
Tx/Rx MIC for TKIP. - add two functions to map a PTK and a GTK to an IEEE 802.11 key and use them in ieee80211_input.c instead of duplicating the same code. properly set Tx/Rx MIC in the IEEE 802.11 key in the case of TKIP. - add ic_psk to struct ieee80211com to store the pre-shared key. - fix setting of the SECURE bit in outgoing EAPOL-Key frames. - when receiving msg 2 of the 4-way handshake, deauthenticate the station if the RSN IE does not match that of the (Re)Association request. - before parsing an RSN or WPA IE, check that there's enough room for the version field (2 bytes) which is mandatory. - various tweaks while i'm here.
2007-08-22when running out of rx buffers, allocate a new mbuf and copy the rxDamien Bergamini
buffer into it using m_copym2() instead of just dropping the received frame. otherwise, it may happen that all rx buffers are queued by tcp_input() waiting for a frame that will never arrive because we are dropping it. when it happens, rx stop working and it is hard to recover from this. the problem is not visible when using WEP because WEP decryption is currently done by software and that rx buffers are copied into mbufs by the software decryption code. while i'm here, increase the number of rx buffers allocated by wpi(4) from 80 to 96 to limit the number of copies. problem and solution found by bluhm@ - thanks.
2007-08-22Subsequent address ranges start at index 1, not index 0.Mark Kettenis
2007-08-22Remove ``#define SDMMC_DEBUG''. Avoids redefinition error when compilingMarcus Glocker
a kernel and setting SDMMC_DEBUG option. ok deraadt@
2007-08-22fix compilation with KDGBJasper Lievisse Adriaanse
from Nicholas Marriott ok deraadt@
2007-08-21Remove two out-of-date comments.Mark Kettenis
2007-08-21Do not repeat device name in failure message printed during attachment.Mark Kettenis
2007-08-21unlock tree, move towards 4.2-currentMark Kettenis
requested by deraadt@
2007-08-21don't access th_flags when it isn't available (only 8 bytes of theDaniel Hartmeier
header are required in the ICMP error). ok deraadt@, henning@
2007-08-20Align the packet after the ppp header.Can Erkin Acar
The earlier change was broken in sparc due to alignment problems. reported and tested by nady@, ok deraadt@ claudio@
2007-08-20put rlphy onto the standard ramdisk; spotted by jsgTheo de Raadt
2007-08-16I don't really know what I was thinking when I wrote this. Not only does theArtur Grabowski
"array" index start at 1, the code also abused index 0 to detect that we were doing a KERN_POOL_NPOOLS. Just look at *name == KERN_POOL_NPOOLS instead of using index == 0 for that. deraadt@ ok
2007-08-16back out part of last diff; breaks all hardware wep decryption.Theo de Raadt
from damien
2007-08-15Kernel stacks can live beyond EINTSTACK now.Mark Kettenis
ok deraadt@
2007-08-15oops, forgot the print the intr string on attachDavid Gwynne
2007-08-15hook the interrupt upDavid Gwynne
2007-08-15Add sti@uturn; the C180 has it there. Tested by nick@.Mark Kettenis
2007-08-15implement nxe_start. this is enough to put packets on the wire. the sglDavid Gwynne
layout of this chip is extremely weird. there's only 4 sg entries in each tx descriptor, but theyre out of order. you can use multiple tx descriptors to tx more than 4 segments, but instead of letting you use all 64bytes that a tx descriptor uses you just use the same 4 sg entries, and up to 8 descs.
2007-08-15program the mac control thing according the the multicast or promiscDavid Gwynne
settings that we ask for. set these flags when the interface is brought up.
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
the firmware is now ready to send and recv packets.
2007-08-15when the interface is brought up allocate all the things that are neededDavid Gwynne
for the chip to work with, eg, the context region, the cmd consumer, the cmd/tx ring, the status ring, and the 3 rx rings. free it all when we bring the chip down.
2007-08-15allocate pkt lists when the interface is brought up.David Gwynne
make nxe_up return void and report its failure by not setting the RUNNING flag like every other nic ive read.
2007-08-15here are the tx, rx, and status (rx completion) descriptors used in the ioDavid Gwynne
paths.
2007-08-15move the firmware to the right state before we start allocating everythingDavid Gwynne
for it.
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
are just stubs at the moment though.
2007-08-15code to allocate, free, sync, and iterate over rings. this is based looselyDavid Gwynne
on the fifos used in tht. very loosely. tht fifos were set up to take small writes of varying length and read or write them into the dmaable memory. nxe has fixed sized descriptors in each ring, so this ring handling is set up to just give pointers to the memory to be filled in directly. the iterator just pushes this pointer around the ring.
2007-08-15steal pkt handling from tht. this lets us keep track of mbufs when theyreDavid Gwynne
on the hardware. it stashes ids and dma bits.
2007-08-15implement link state monitoring. you have to poll the firmware to see theDavid Gwynne
state of the link. since im doing this already for the temp sensor i merged the polling for both and do them at the same time. i poll every 5 seconds now instead of every 60. i can now tell if the cable between the nxe and tht has fallen out. white space fixes while im here.
2007-08-15hook up the ether and ifmedia layers. you can see nxe in ifconfig outputDavid Gwynne
now. just the lladdr though, i havent filled in enough of the ioctl handler for more yet.
2007-08-15hook a kernel sensor up to the temp register on the chip. poll out of aDavid Gwynne
timeout since reading registers doesnt need a process context.
2007-08-15start the init of the firmware. it can take a long time, so we start it inDavid Gwynne
attach and make sure its finished at mountroot time.
2007-08-15When polling call ahaintr() at splbio(). Noticed by and fix tested byKenneth R Westerback
todd@.
2007-08-15pull my wrapper around single segment dma allocations in. its got to be atDavid Gwynne
least half a dozen drivers now that use this.
2007-08-15white space fixesDavid Gwynne