1
2
3
4
5
6
7
8
9
10 #ifndef __SXGBE_PLATFORM_H__
11 #define __SXGBE_PLATFORM_H__
12
13
14 #define SXGBE_CSR_100_150M 0x0
15 #define SXGBE_CSR_150_250M 0x1
16 #define SXGBE_CSR_250_300M 0x2
17 #define SXGBE_CSR_300_350M 0x3
18 #define SXGBE_CSR_350_400M 0x4
19 #define SXGBE_CSR_400_500M 0x5
20
21
22
23
24 struct sxgbe_mdio_bus_data {
25 unsigned int phy_mask;
26 int *irqs;
27 int probed_phy_irq;
28 };
29
30 struct sxgbe_dma_cfg {
31 int pbl;
32 int fixed_burst;
33 int burst_map;
34 int adv_addr_mode;
35 };
36
37 struct sxgbe_plat_data {
38 char *phy_bus_name;
39 int bus_id;
40 int phy_addr;
41 int interface;
42 struct sxgbe_mdio_bus_data *mdio_bus_data;
43 struct sxgbe_dma_cfg *dma_cfg;
44 int clk_csr;
45 int pmt;
46 int force_sf_dma_mode;
47 int force_thresh_dma_mode;
48 int riwt_off;
49 };
50
51 #endif