intern.h (e3c55d406bd8df1a878546002c93db90c42be10c) intern.h (313ea293e9c4d1eabcaddd2c0800f083b03c2a2e)
1/*
2 * CAAM/SEC 4.x driver backend
3 * Private/internal definitions between modules
4 *
5 * Copyright 2008-2011 Freescale Semiconductor, Inc.
6 *
7 */
8

--- 23 unchanged lines hidden (view full) ---

32 void *cbkarg; /* Argument per ring entry */
33 u32 *desc_addr_virt; /* Stored virt addr for postprocessing */
34 dma_addr_t desc_addr_dma; /* Stored bus addr for done matching */
35 u32 desc_size; /* Stored size for postprocessing, header derived */
36};
37
38/* Private sub-storage for a single JobR */
39struct caam_drv_private_jr {
1/*
2 * CAAM/SEC 4.x driver backend
3 * Private/internal definitions between modules
4 *
5 * Copyright 2008-2011 Freescale Semiconductor, Inc.
6 *
7 */
8

--- 23 unchanged lines hidden (view full) ---

32 void *cbkarg; /* Argument per ring entry */
33 u32 *desc_addr_virt; /* Stored virt addr for postprocessing */
34 dma_addr_t desc_addr_dma; /* Stored bus addr for done matching */
35 u32 desc_size; /* Stored size for postprocessing, header derived */
36};
37
38/* Private sub-storage for a single JobR */
39struct caam_drv_private_jr {
40 struct device *parentdev; /* points back to controller dev */
41 struct platform_device *jr_pdev;/* points to platform device for JR */
40 struct list_head list_node; /* Job Ring device list */
41 struct device *dev;
42 int ridx;
43 struct caam_job_ring __iomem *rregs; /* JobR's register space */
44 struct tasklet_struct irqtask;
45 int irq; /* One per queue */
46
47 /* Job ring info */
48 int ringsize; /* Size of rings (assume input = output) */
49 struct caam_jrentry_info *entinfo; /* Alloc'ed 1 per ring entry */

--- 8 unchanged lines hidden (view full) ---

58};
59
60/*
61 * Driver-private storage for a single CAAM block instance
62 */
63struct caam_drv_private {
64
65 struct device *dev;
42 int ridx;
43 struct caam_job_ring __iomem *rregs; /* JobR's register space */
44 struct tasklet_struct irqtask;
45 int irq; /* One per queue */
46
47 /* Job ring info */
48 int ringsize; /* Size of rings (assume input = output) */
49 struct caam_jrentry_info *entinfo; /* Alloc'ed 1 per ring entry */

--- 8 unchanged lines hidden (view full) ---

58};
59
60/*
61 * Driver-private storage for a single CAAM block instance
62 */
63struct caam_drv_private {
64
65 struct device *dev;
66 struct device **jrdev; /* Alloc'ed array per sub-device */
66 struct platform_device **jrpdev; /* Alloc'ed array per sub-device */
67 struct platform_device *pdev;
68
69 /* Physical-presence section */
70 struct caam_ctrl *ctrl; /* controller region */
71 struct caam_deco **deco; /* DECO/CCB views */
72 struct caam_assurance *ac;
73 struct caam_queue_if *qi; /* QI control region */
74

--- 7 unchanged lines hidden (view full) ---

82
83 /* which jr allocated to scatterlist crypto */
84 atomic_t tfm_count ____cacheline_aligned;
85 /* list of registered crypto algorithms (mk generic context handle?) */
86 struct list_head alg_list;
87 /* list of registered hash algorithms (mk generic context handle?) */
88 struct list_head hash_list;
89
67 struct platform_device *pdev;
68
69 /* Physical-presence section */
70 struct caam_ctrl *ctrl; /* controller region */
71 struct caam_deco **deco; /* DECO/CCB views */
72 struct caam_assurance *ac;
73 struct caam_queue_if *qi; /* QI control region */
74

--- 7 unchanged lines hidden (view full) ---

82
83 /* which jr allocated to scatterlist crypto */
84 atomic_t tfm_count ____cacheline_aligned;
85 /* list of registered crypto algorithms (mk generic context handle?) */
86 struct list_head alg_list;
87 /* list of registered hash algorithms (mk generic context handle?) */
88 struct list_head hash_list;
89
90#define RNG4_MAX_HANDLES 2
91 /* RNG4 block */
92 u32 rng4_sh_init; /* This bitmap shows which of the State
93 Handles of the RNG4 block are initialized
94 by this driver */
95
90 /*
91 * debugfs entries for developer view into driver/device
92 * variables at runtime.
93 */
94#ifdef CONFIG_DEBUG_FS
95 struct dentry *dfs_root;
96 struct dentry *ctl; /* controller dir */
97 struct dentry *ctl_rq_dequeued, *ctl_ob_enc_req, *ctl_ib_dec_req;

--- 12 unchanged lines hidden ---
96 /*
97 * debugfs entries for developer view into driver/device
98 * variables at runtime.
99 */
100#ifdef CONFIG_DEBUG_FS
101 struct dentry *dfs_root;
102 struct dentry *ctl; /* controller dir */
103 struct dentry *ctl_rq_dequeued, *ctl_ob_enc_req, *ctl_ib_dec_req;

--- 12 unchanged lines hidden ---