diff options
author | Raghu Vatsavayi <rvatsavayi@caviumnetworks.com> | 2016-08-31 11:03:26 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-31 14:12:48 -0700 |
commit | 3451b97cce2d7827bd76378ae6e9aeb7e8fc463d (patch) | |
tree | b52bb014fb3e49257f8f0b475166a7a38661ceac /drivers/net/ethernet/cavium/liquidio/octeon_device.h | |
parent | liquidio: CN23XX device init and sriov config (diff) | |
download | linux-dev-3451b97cce2d7827bd76378ae6e9aeb7e8fc463d.tar.xz linux-dev-3451b97cce2d7827bd76378ae6e9aeb7e8fc463d.zip |
liquidio: CN23XX register setup
Adds support for initializing cn23xx device registers
related to mac, input/output and pf global config.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com>
Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/octeon_device.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.h b/drivers/net/ethernet/cavium/liquidio/octeon_device.h index f10cdd45729e..c120613f7b0d 100644 --- a/drivers/net/ethernet/cavium/liquidio/octeon_device.h +++ b/drivers/net/ethernet/cavium/liquidio/octeon_device.h @@ -276,6 +276,42 @@ struct octdev_props { struct net_device *netdev; }; +struct octeon_pf_vf_hs_word { +#ifdef __LITTLE_ENDIAN_BITFIELD + /** PKIND value assigned for the DPI interface */ + u64 pkind : 8; + + /** OCTEON core clock multiplier */ + u64 core_tics_per_us : 16; + + /** OCTEON coprocessor clock multiplier */ + u64 coproc_tics_per_us : 16; + + /** app that currently running on OCTEON */ + u64 app_mode : 8; + + /** RESERVED */ + u64 reserved : 16; + +#else + + /** RESERVED */ + u64 reserved : 16; + + /** app that currently running on OCTEON */ + u64 app_mode : 8; + + /** OCTEON coprocessor clock multiplier */ + u64 coproc_tics_per_us : 16; + + /** OCTEON core clock multiplier */ + u64 core_tics_per_us : 16; + + /** PKIND value assigned for the DPI interface */ + u64 pkind : 8; +#endif +}; + struct octeon_sriov_info { /* Actual rings left for PF device */ u32 num_pf_rings; @@ -413,6 +449,8 @@ struct octeon_device { struct octeon_sriov_info sriov_info; + struct octeon_pf_vf_hs_word pfvf_hsword; + int rx_pause; int tx_pause; |