123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef __HIFNHIPPVAR_H__
- #define __HIFNHIPPVAR_H__
- #define HIPP_MAX_CHIPS 8
- struct hipp_softc {
- softc_device_decl sc_dev;
- struct pci_dev *sc_pcidev;
- ocf_iomem_t sc_bar[5];
- caddr_t sc_barphy[5];
- int sc_num;
- spinlock_t sc_mtx;
- int32_t sc_cid;
- int sc_irq;
- #if 0
- u_int32_t sc_dmaier;
- u_int32_t sc_drammodel;
- u_int32_t sc_pllconfig;
- struct hifn_dma *sc_dma;
- dma_addr_t sc_dma_physaddr;
- int sc_dmansegs;
- int sc_maxses;
- int sc_nsessions;
- struct hifn_session *sc_sessions;
- int sc_ramsize;
- int sc_flags;
- #define HIFN_HAS_RNG 0x1
- #define HIFN_HAS_PUBLIC 0x2
- #define HIFN_HAS_AES 0x4
- #define HIFN_IS_7811 0x8
- #define HIFN_IS_7956 0x10
- struct timer_list sc_tickto;
- int sc_rngfirst;
- int sc_rnghz;
- int sc_c_busy;
- int sc_s_busy;
- int sc_d_busy;
- int sc_r_busy;
- int sc_active;
- int sc_needwakeup;
- int sc_curbatch;
- int sc_suspended;
- struct miscdevice sc_miscdev;
- #endif
- };
- #define HIPP_LOCK(_sc) spin_lock_irqsave(&(_sc)->sc_mtx, l_flags)
- #define HIPP_UNLOCK(_sc) spin_unlock_irqrestore(&(_sc)->sc_mtx, l_flags)
- #endif
|