Re: [Ocf-linux-users] OCF compatible driver for HiFN Xcellerator Card 8155HXL-G
Brought to you by:
david-m
From: David M. <Dav...@se...> - 2009-03-06 02:31:47
|
Jivin hiren joshi lays it down ... > Hello, > > I am having a HiFN Xcellerator Card 8155HXL-G (DS250 - DS255 series). > I want to use this card with Openswan/KLIPS via OCF. > > >From ocf-linux-20080917/ocf/ChangeLog, > > 2007-07-25 21:25 davidm > > * Makefile, hifn/Makefile, hifn/hifnHIPP.c, hifn/hifnHIPPreg.h, > hifn/hifnHIPPvar.h, ixp4xx/Makefile, ocfnull/Makefile, > safe/Makefile, talitos/Makefile: > > Bring in the hifnHIPP driver written by Xelerance. This is the > super hifn chip with full protocol offload. > > So I think my card - 8155 (which belongs to HIPP-I/II family) is supported. > > However I noted that in the HIPP driver file > (ocf-linux-20080917/ocf/hifn/hifnHIPP.c), > the call to crypto_register is commented out: > > #if 0 /* no code here yet ?? */ > crypto_register(sc->sc_cid, CRYPTO_3DES_CBC, 0, 0); > #endif > > Also, the callback functions hipp_newsession, hipp_process and > hipp_freesession just return EINVAL, and there is no crypto_done, crypto_kdone. > > So I am just curious about the state of this driver. Sadly, there is no 8155 or compatible driver. This is just a left over of something that never eventuated IIRC. > Please guide me about how should I approach to use this card with OCF > for Openswan. I think you need to get the appropriate "devkit" from hifn, then write a driver somewhat along the lines of either ixp4xx driver or the ep80579 driver that also rely on externally provided devkits. It is usually a much simpler task to support such devices at they have a nice API etc and you do not need to write a full HW driver. Cheers, Davidm -- David McCullough, dav...@se..., Ph:+61 734352815 McAfee - SnapGear http://www.snapgear.com http://www.uCdot.org |