Thomas Gleixner | 82c2981 | 2019-05-28 09:57:05 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Richard Röjfors | a1aa882 | 2010-04-21 16:33:29 -0700 | [diff] [blame] | 2 | /* |
| 3 | * ks8842.h KS8842 platform data struct definition |
| 4 | * Copyright (c) 2010 Intel Corporation |
Richard Röjfors | a1aa882 | 2010-04-21 16:33:29 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _LINUX_KS8842_H |
| 8 | #define _LINUX_KS8842_H |
| 9 | |
| 10 | #include <linux/if_ether.h> |
| 11 | |
| 12 | /** |
| 13 | * struct ks8842_platform_data - Platform data of the KS8842 network driver |
| 14 | * @macaddr: The MAC address of the device, set to all 0:s to use the on in |
| 15 | * the chip. |
Richard Röjfors | 94fe8c6 | 2010-07-27 12:57:01 +0000 | [diff] [blame] | 16 | * @rx_dma_channel: The DMA channel to use for RX, -1 for none. |
| 17 | * @tx_dma_channel: The DMA channel to use for TX, -1 for none. |
Richard Röjfors | a1aa882 | 2010-04-21 16:33:29 -0700 | [diff] [blame] | 18 | * |
| 19 | */ |
| 20 | struct ks8842_platform_data { |
| 21 | u8 macaddr[ETH_ALEN]; |
Richard Röjfors | 94fe8c6 | 2010-07-27 12:57:01 +0000 | [diff] [blame] | 22 | int rx_dma_channel; |
| 23 | int tx_dma_channel; |
Richard Röjfors | a1aa882 | 2010-04-21 16:33:29 -0700 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | #endif |