bgmac.h (b9650557f3d58924e3be040df0ff7a3dae19ad83) bgmac.h (29ba877e7c8092a4dd3cbef80cca4e857129ca55)
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, ...) \

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

414 * Be really aware of the specific @end meaning. It's an index of a slot *after*
415 * the one containing data that can be read. If @start equals @end the ring is
416 * empty.
417 */
418struct bgmac_dma_ring {
419 u32 start;
420 u32 end;
421
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, ...) \

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

414 * Be really aware of the specific @end meaning. It's an index of a slot *after*
415 * the one containing data that can be read. If @start equals @end the ring is
416 * empty.
417 */
418struct bgmac_dma_ring {
419 u32 start;
420 u32 end;
421
422 u16 num_slots;
423 u16 mmio_base;
424 struct bgmac_dma_desc *cpu_base;
425 dma_addr_t dma_base;
426 u32 index_base; /* Used for unaligned rings only, otherwise 0 */
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 u16 mmio_base;
427 bool unaligned;
428
429 struct bgmac_slot_info slots[BGMAC_RX_RING_SLOTS];
430};
431
432struct bgmac_rx_header {
433 __le16 len;
434 __le16 flags;

--- 60 unchanged lines hidden ---
426 bool unaligned;
427
428 struct bgmac_slot_info slots[BGMAC_RX_RING_SLOTS];
429};
430
431struct bgmac_rx_header {
432 __le16 len;
433 __le16 flags;

--- 60 unchanged lines hidden ---