forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h
....@@ -122,7 +122,7 @@
122122 unsigned int base; /* base index */
123123 unsigned int next; /* next possible free index */
124124 spinlock_t lock; /* ppm pool lock */
125
- unsigned long bmap[0];
125
+ unsigned long bmap[];
126126 } ____cacheline_aligned_in_smp;
127127
128128 struct cxgbi_ppm {
....@@ -143,8 +143,9 @@
143143 spinlock_t map_lock; /* ppm map lock */
144144 unsigned int bmap_index_max;
145145 unsigned int next;
146
+ unsigned int max_index_in_edram;
146147 unsigned long *ppod_bmap;
147
- struct cxgbi_ppod_data ppod_data[0];
148
+ struct cxgbi_ppod_data ppod_data[];
148149 };
149150
150151 #define DDP_THRESHOLD 512
....@@ -324,9 +325,9 @@
324325 unsigned long caller_data);
325326 int cxgbi_ppm_init(void **ppm_pp, struct net_device *, struct pci_dev *,
326327 void *lldev, struct cxgbi_tag_format *,
327
- unsigned int ppmax, unsigned int llimit,
328
- unsigned int start,
329
- unsigned int reserve_factor);
328
+ unsigned int iscsi_size, unsigned int llimit,
329
+ unsigned int start, unsigned int reserve_factor,
330
+ unsigned int edram_start, unsigned int edram_size);
330331 int cxgbi_ppm_release(struct cxgbi_ppm *ppm);
331332 void cxgbi_tagmask_check(unsigned int tagmask, struct cxgbi_tag_format *);
332333 unsigned int cxgbi_tagmask_set(unsigned int ppmax);