summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ubsec.c
AgeCommit message (Collapse)Author
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-28Try to share a common src/dst map where possible, and cope with thatJason Wright
eventuality later in the code.
2002-01-28First round of post-bus_dma cleanups:Jason Wright
- remove the packl/packp arrays and rework handling appropriately - destination map may or may not exist, cope. - remove a redundant bus_dmamap_sync() in _process (real sync is in _feed) - remove long deprecated q_{src,dst}pkt stuff from queue structure
2002-01-28Quick (and a little dirty) conversion to bus_dma(9).Jason Wright
2002-01-24More cleaningJason Wright
2002-01-19From Patrik Lindergren (patrik@ipunplugged.com):Jason Wright
* make the driver big-endian aware * handling for DMA errors * move some allocations to attach From me: whitespace clean up and vtophys removal (almost works on sparc64)
2002-01-02at least ; required after label or case; openbsd@davidkrause.comTheo de Raadt
2001-12-07Don't disable TRDY/RETRY, this doesn't have the expected behavior.Jason Wright
2001-11-20Match bcom 5821 (this is untested and is based on the datasheet's claim thatJason Wright
the 5821 is "register and software compatible with Broadcom 5820").
2001-11-14- Move rng buffer allocation (bus_dmamem_map/unmap) to attach instead of duringJason Wright
the first timeout which is the wrong time to be calling bus_dmamem_map/unmap - Make sure that mastering is really enabled. - remove some debugging stuff that would be a pain to get working on sparc64.
2001-11-09be way more sure that software cannot be usedTheo de Raadt
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-11-05Switch everything to the new bus_dmamap_sync API.Artur Grabowski
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
2001-08-27reverse read/write directions in bus_dmamap_sync calls since I misunderstood ↵Jason Wright
the API
2001-08-26deal with 5 arg form of bus_dmamap_sync() if availableJason Wright
2001-08-25Change pci_intr_map to take pci_attach_args as an argument.Artur Grabowski
All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
2001-08-12remove redundant vm includesMichael Shalayeff
2001-07-04Add tests for segment lengths and total lengths bigger than the chip can handle.Jason Wright
Also, add a missing test for *2pages failure on destination buffers.
2001-07-02- More vtophys death: packet buffer lists are is bus_dma(9) memory as isJason Wright
the mac buffer - also, reenable aggregation code (accidentally removed)
2001-06-29move definitions around a bit and define a few more constantsJason Wright
2001-06-29allocate contexts during attach since we can't mess with them duringJason Wright
interrupts (the space allocation is wasteful, but more data will be moved into the allocation soon).
2001-06-23Correctly handle the IV_PRESENT flag.Angelos D. Keromytis
2001-06-23Conform to new prototype for crypto_register()Angelos D. Keromytis
2001-06-23merge crypto/crypto{dev,}.h to crypto/cryptodev.h, to avoid name conflicts ↵Theo de Raadt
inside OpenSSL codebase
2001-06-18kill a debug message that makes UBSEC_DEBUG uselessTheo de Raadt
2001-06-14OOPSTheo de Raadt
2001-06-14hackish auto-IV mode for IOV operationsTheo de Raadt
2001-06-12Make pci_mapreg_map take an extra argument where we canNiklas Hallqvist
put a size limitation of the PCI region to map. That makes the PERC 3/Di raid controller usable, as it publishes too much PCI memory for us to map in the kernel virtual memory. As we only access the first 256 byte it is of no use to map 128MB of kvm.
2001-06-08Put back bus_dmaification of context's (seems to have been fixed byJason Wright
recent changes to cryptosoft.c). So, mcr and pktbuf handling to go...
2001-05-30Un-bus_dma(9) mcr1 context and mcr operations (causes problems under load).Jason Wright
Reimplement mcr2 bus_dma handling.
2001-05-23- relax alignment constraintsJason Wright
- make sure dma_map is set to NULL on failure
2001-05-23bus_dmaify mcr handling (just leaves buffer lists and mac buffer to go...)Jason Wright
2001-05-22- delay allocation of rng handling structuresJason Wright
- if an rng operation is already in progress, don't setup a new timeout.
2001-05-22- Don't poll the rng more than 100 times a secondJason Wright
- bus_dmaify mcr2 operations (rng) - start bus_dma of mcr1 operations (context; mcr and pktbufs to go) ... more to come ...
2001-05-14kill agregate messages; reported by stephen@etunnels.comTheo de Raadt
2001-05-14use real uioTheo de Raadt
2001-05-13use criov_copydata for grabbing iv for next packetJason Wright
2001-05-13initial cut at /dev/crypto support. takes original mbuf "try, and discardTheo de Raadt
if we fail" semantics and extends to two varients of data movement: mbuf, or an iovec style block.
2001-05-13Initial support for Broadcom 5820, which is very much like the 5805 exceptJason Wright
that the packet context structure for ipsec has changed (added two fields and, annoyingly, rearranged several of them). The MCR2 operations (only RNG is used at this point) are supported, too.
2001-04-29When expanding the session table, only copy the number of sessions alreadyJason Wright
there to the new table; from stephen@etunnels.com (PR 1801).
2001-04-06typo in error messageJason Wright
2001-03-28Allow tdbi's to appear in mbufs throughout the stack; this allowsAngelos D. Keromytis
security properties of the packets to be pushed up to the application (not done yet). Eventually, this will be turned into a packet attributes framework. Make sure tdbi's are free'd/cleared properly whenever drivers (or NFS) does weird things with mbufs.
2001-03-25Fix potential dangling mbuf and potential double free. Thanks to Dawson and teamConstantine Sapuntzakis
2001-02-02The read/write indication bit in DMAERR reg is bit 1, not bit 0Jason Wright
also, add a mask for the address portion of DMAERR and use it
2001-01-31before copying the packet header, make sure we actually got the mbufJason Wright
2001-01-29grab rng stuff more often (now 6400bytes/sec)Jason Wright
document the other mcr2 operations and fix a printf (luckily it's never been called =)
2001-01-29- add infrastructure for dealing with the key generator (MCR2)Jason Wright
- add support for the onboard rng using that structure - add a interrupt status mask (differs for 5501 and 5601) - reorganize slightly to take into account that MCR1 isn't the only reason for interrupts.
2001-01-11oopsTheo de Raadt
2001-01-11move ich to auich at mickey's requestTheo de Raadt
2000-11-17*HMAC96->*HMACAngelos D. Keromytis
Bear in mind, you will need to recompile both isakmpd/ipsecadm and your kernel --- otherwise things won't work together. Naturally, all these changes will not be folded into -STABLE, since they would break binary compatibility.