summaryrefslogtreecommitdiff
path: root/sys/dev/pci/hifn7751.c
AgeCommit message (Collapse)Author
2001-06-25Have to enable PIER as well as DMAIER in order to get interrupts from theJason Wright
bignum engine.
2001-06-24Remove some redundent copies of the total length/skip values and use theJason Wright
descriptors passed in instead.
2001-06-24reflect reality more closely and remove more invertex stuffJason Wright
2001-06-24- oops, masking off wrong bits in destination total length fieldJason Wright
- make sure reserved fields are zero'd
2001-06-23copydata, not copybackAngelos D. Keromytis
2001-06-23Correctly handle the IV_PRESENT flag.Angelos D. Keromytis
2001-06-23be sure to clear (by writing 1) the public done by in the status registerJason Wright
2001-06-23Conform to new prototype for crypto_register()Angelos D. Keromytis
2001-06-23add some infrastructure for the public engineJason Wright
require reworking interrupt enable and status checking as well as a bit of initialization
2001-06-23merge crypto/crypto{dev,}.h to crypto/cryptodev.h, to avoid name conflicts ↵Theo de Raadt
inside OpenSSL codebase
2001-06-23- put hw defines in *reg, software defines in *var, etcJason Wright
- clean up pub/rng initialization call - attempt to remove more intertex vestiges
2001-06-22Fix lotsa bugs:Jason Wright
- Hi/Fn length fields in command structures are 18 bits (feature!), but descriptor lengths are 16 bits. - define dmamap maximum lengths correctly (2^18 for total length, 2^16 for segments). - Make the defines more consistent, and add other modes - split source_count in command descriptors into a 16 bit length, and 16bit reserved part upshot: blocks as large as 2^18 - 8 work now for userland crypto
2001-06-22Add support for RNG on 7951; many thanks to Soren KristensenJason Wright
<soren@soekris.com> for donating the cards.
2001-06-14hackish auto-IV mode for IOV operationsTheo de Raadt
2001-06-14dst ring corruption fix; jasonTheo de Raadt
2001-06-14KNFTheo 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-05-14use bus_dmamap_sync() as appropriateJason Wright
2001-05-14- simplify hifn_dmamap_aligned()Jason Wright
- simplify hifn_crypto() and remove duplicate work of determining alignment - add ability to share a map for src and dst instead of creating a new one if all of the alignment constraints are met.
2001-05-14use real uioTheo de Raadt
2001-05-13First try at bus_dma(9)-ifying hifn7751 driver... advantages:Jason Wright
- vtophys is dead - now builds on alpha
2001-05-13missing elseJason 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-11I think this will match and work on a hifn 7951Theo de Raadt
2001-05-08simplify printsTheo de Raadt
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-02-18shorten messageTheo de Raadt
2001-01-31before copying the packet header, make sure we actually got the mbufJason Wright
2000-11-22even bigger delay in ram probe; deraadt@ okMichael Shalayeff
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.
2000-10-26shadow the dmaier to avoid an additional pci read in the interrupt pathJason Wright
if mastering isn't enabled, scream document netsec rev A workaround
2000-10-24Duh, C_WAIT will always be set if the card is inactive, but that interruptJason Wright
isn't always enabled. (CSR & IER) == 0, means not to claim the intr. deraadt ok
2000-10-23unreset takes time too, and you notice this on a p3/933Theo de Raadt
2000-10-13delays that permit more machines to work; itojunTheo de Raadt
2000-10-11printf format string typo in HIFN_DEBUG section.Jun-ichiro itojun Hagino
size_t on printf (cast to u_long and use %lu)
2000-08-15- deallocate all resources grabbed during hifn_attach() when an error occurs.Jason Wright
- temporary workaround for netsec hifn7751 rev A: half the amount of memory because two of the address lines were left floating (better memory check coming soon).
2000-08-13indentTheo de Raadt
2000-07-28Use the correct bits for determining which session to delete. Some style fixes.Jason Wright
2000-06-20call crypto_done()Jason Wright
2000-06-17knfJason Wright
2000-06-13use the source length to calculate the output length instead of relying onJason Wright
the length in the descriptors (which is sometimes 0!).
2000-06-13Be more careful when setting up the mbufs for destination buffersJason Wright
(similiar to what's in ubsec)
2000-06-02callback is always staticTheo de Raadt
2000-05-04fixed context memory sizingJason Wright
2000-04-25if we have to allocate a new mbuf, don't forget to copy the header info fromJason Wright
the original packet.
2000-04-25fixing the frontend means fixing the backend too... add a countdown whenJason Wright
computing the length of a destination buffer in the callback since hifn always writes in multiples of 4 bytes (and AH can produce non-nice packets)
2000-04-25use the size of the allocation, not the minimum of what was requested andJason Wright
the allocation size to determine the length of a destination buffer
2000-04-23freesession takes u_int64_tAngelos D. Keromytis
2000-04-19split out mbuf scatter gather functionTheo de Raadt