summaryrefslogtreecommitdiff
path: root/sys/dev/pci/hifn7751var.h
AgeCommit message (Collapse)Author
2004-01-20don't limit the number of sessions to the onboard ram (always upload theJason Wright
key and IV data). This kinda sucks for HMAC, but the alternative is a cache manager and I just don't want to go there. Tested by sturm@ (thanks!)
2003-10-09- from freebsd: 795[56] AES supportJason Wright
- don't bother with the master/mmio enable stuff (it's done in pci.c for us) based on suggestion from mickey
2003-06-02licence cleanupTheo de Raadt
2003-05-13typos from Jean-Francois Brousseau;Jason McIntyre
2003-02-24Add support for LZS compression (only usable by ipcomp at the moment)Jason Wright
2003-02-17whitespace, typos, and compression structure defnsJason Wright
2003-01-05spellingTheo de Raadt
2002-07-23Turn READ/WRITE into function calls (driver was getting too bloated withJason Wright
inline macro's; if hifn wanted to make it possible to write a very efficient driver they would have fixed the bugs in the chips). Also, invalidate the burst write checks when a read is executed.
2002-07-21Flip on the LEDs on a 7811 when each of the rings is active (and turn themJason Wright
off when not), I should really get a life.
2002-07-21Deal with the fact that one of the 7811 revisions cannot correctly handleJason Wright
burst writes (bridges may coalesce sequential writes into a burst) by inserting a read (I know, icky!) in between sequential writes. Thanks to sam@errno.com, GTGI, and Hifn for helping track this one down.
2002-04-08Credit DARPA/USAF appropriately.Jason Wright
2002-01-08Add support for the Hifn 7811 (Thanks to GTGI for donating the card).Jason Wright
While here, avoid resetting the card so often during the ram probe [speeds up autoconf and simplifies the driver a bit]. Also, add a missing argument to a debugging printf() (no longer ever called because the abort timers are disabled =)
2001-11-12Don't abuse bus_dma(9) API by using dmamap->dm_* to hold results fromJason Wright
bus_dmamem_* operations; instead, store them in softc. This allows the driver to get through autoconf on sparc64 (ok, well it fails the ram test because of endian issues... but it's a start).
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-11-047751 has two registers in config space (0x40 - RETRY_TIMEOUT and 0x41,Jason Wright
TRDY_TIMEOUT). These registers must be initialized to zero to disable these timers or 7751 will get PCI aborts on its descriptor rings on certain chipsets. These timers were removed because they were unneeded in the 7951. I'm not sure how I missed this in the datasheet, but there it is plain as day on page 24. Thanks go to Hifn for pointing this out. Upshot: PCI abort problem on 7751 appears to be solved.
2001-08-28an attempt at deuglification of the previous commit (It's still ugly, tho)Jason Wright
2001-08-28Relax restriction on buffer length being % 4 = 0 for the last entry in theJason Wright
chain. This allows us to avoid mbuf copies (and EINVAL on iov's) for packets of non "nice" length. Do this by adding a pad u_int32_t to catch the (possible) overflow and detecting when it's necessary. Also, do a bit of cleaning that ben pointed out.
2001-08-27Deal with __HAS_NEW_BUS_DMAMAP_SYNC and try to sync partial maps when possible.Jason Wright
2001-08-22rename hs_flags -> hs_state and use #defines for the state names.Jason Wright
2001-08-17Add RC4 support.ben
2001-08-11move hifn_stats definition to headerJason Wright
2001-08-08leave the dma engines polling for a bit after the last descriptor has beenJason Wright
passed through. After a few seconds (5 currently) of no activity, stop them completely.
2001-08-08Initial support for RC4 operations (This probably won't work yet asJason Wright
the caller of *_process() doesn't seem to initialize crd_klen correctly; it has a zero value... still debugging...).
2001-07-21- Clear all interrupts during initialization (shouldn't be necessary, butJason Wright
doesn't hurt). - Turn the dma queues on and off as needed. This results in fewer PCI aborts on 7751.
2001-07-08Hifn has changed its company name, make the name consistent throughoutBrad Smith
the tree. Hi/fn, Hi/Fn and HiFn -> Hifn. -- Ok'd by deraadt@
2001-06-27"IPsec" capitalization (jsyn@nthought.com)Angelos D. Keromytis
2001-06-26move bus access to var where it belongsJason Wright
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-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-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-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.
2000-06-02callback is always staticTheo de Raadt
2000-05-08crank MAX_SCATTER to handle large chain lengths; deraadt ok'd.Jason Wright
2000-04-14not EXPORTJason Wright
2000-04-13remove bit definitions and associated macros for hifn_command.flags since itJason Wright
doesn't exist anymore.
2000-04-13- let hifn_process() compute the mask bits for the command descriptorsJason Wright
(falls under the category of compute it once and use it). - just copy the computed masks in hifn_write_command() - remove the now unnecessary flags field from hifn_command
2000-04-13remove unnecessary variableJason Wright
2000-04-11- add support for buffers that are not aligned (or end on a non 4byte boundary)Jason Wright
- recompute destination length from destination descriptors and reclaim the destination ring there.
2000-04-10- Add back code from the original aeon driver to handle missed interrupts byJason Wright
enabling interrupts when the command queue has more than one entry. - fix comment on hifn_newsession to reflect reality - allocate session structure in softc - compute a random IV when a session is created and try to chain from a software kept IV for subsequent packets - add handling of CRD_F_EXPLICIT
2000-04-04add mac result pointer to the callback routineJason Wright
register as supporting MD5_HMAC96 and SHA1_HMAC96 use the correct bit (HIFN_MAC_CMD_NEW_KEY) when checking the mac_cmd mask don't append the mac result to the dest buffer, add it to the result buffer remove incorrect source count calculation involving mac length add order checking to hifn_process so that we can verify the request is possible given the ordering of processing units within the hifn. correct hifn_callback()'s handling of mac checking and copy the computed mac into the right place in the mbuf.
2000-03-29- update copyrightsJason Wright
- remove all ability to block (no more tsleep/wakeup)
2000-03-29remove round-robin use of the boards. We're depending on the upper layerJason Wright
being more intelligent about allocation in the future.
2000-03-29Long over due checkpoint:Jason Wright
o register the hifn as handling DES and 3DES (no md5 or sha1 yet) depending on whether the board is unlocked (none, half, or full) o Fix many KNF nits o print the amount of memory correctly and don't print the number of sessions o set command and result buffer sizes correctly o reclaim the descriptor rings so new commands and buffers can be added o remove some bogus checks on the command buffer o add new variables mac_process_len and crypt_process_len to hifn_command_t o fix calculation in hifn_mbuf to generate the pa/len array for src/dst o simplify the code for setting up the jump descriptor o rework the hifn_intr routine to interrupt at IPL_IMP and simplify it's results processing o more to come...
2000-03-22eissed another renamning of result_status -> result_flagsJason Wright
2000-03-22convert some spaces to tabs and make variable names the same as theJason Wright
surrounding comments
2000-03-16move aeon to hifn7751Theo de Raadt
1999-02-24handle scatter-gather, seperate src/dst mbuf, etcTheo de Raadt