bgmac.h (39c853ebfe169f187a760b34f9cbf54751bfce00) | bgmac.h (b38c83dd08665a93e439c4ffd9eef31bc098a6ea) |
---|---|
1#ifndef _BGMAC_H 2#define _BGMAC_H 3 4#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 5 6#define bgmac_err(bgmac, fmt, ...) \ 7 dev_err(&(bgmac)->core->dev, fmt, ##__VA_ARGS__) 8#define bgmac_warn(bgmac, fmt, ...) \ --- 400 unchanged lines hidden (view full) --- 409 * @start: index of the first slot containing data 410 * @end: index of a slot that can *not* be read (yet) 411 * 412 * Be really aware of the specific @end meaning. It's an index of a slot *after* 413 * the one containing data that can be read. If @start equals @end the ring is 414 * empty. 415 */ 416struct bgmac_dma_ring { | 1#ifndef _BGMAC_H 2#define _BGMAC_H 3 4#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 5 6#define bgmac_err(bgmac, fmt, ...) \ 7 dev_err(&(bgmac)->core->dev, fmt, ##__VA_ARGS__) 8#define bgmac_warn(bgmac, fmt, ...) \ --- 400 unchanged lines hidden (view full) --- 409 * @start: index of the first slot containing data 410 * @end: index of a slot that can *not* be read (yet) 411 * 412 * Be really aware of the specific @end meaning. It's an index of a slot *after* 413 * the one containing data that can be read. If @start equals @end the ring is 414 * empty. 415 */ 416struct bgmac_dma_ring { |
417 u16 num_slots; 418 u16 start; 419 u16 end; | 417 u32 start; 418 u32 end; |
420 | 419 |
420 u16 num_slots; |
|
421 u16 mmio_base; 422 struct bgmac_dma_desc *cpu_base; 423 dma_addr_t dma_base; 424 u32 index_base; /* Used for unaligned rings only, otherwise 0 */ 425 bool unaligned; 426 427 struct bgmac_slot_info slots[BGMAC_RX_RING_SLOTS]; 428}; --- 65 unchanged lines hidden --- | 421 u16 mmio_base; 422 struct bgmac_dma_desc *cpu_base; 423 dma_addr_t dma_base; 424 u32 index_base; /* Used for unaligned rings only, otherwise 0 */ 425 bool unaligned; 426 427 struct bgmac_slot_info slots[BGMAC_RX_RING_SLOTS]; 428}; --- 65 unchanged lines hidden --- |