ks8842.h 632 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * ks8842.h KS8842 platform data struct definition
  4. * Copyright (c) 2010 Intel Corporation
  5. */
  6. #ifndef _LINUX_KS8842_H
  7. #define _LINUX_KS8842_H
  8. #include <linux/if_ether.h>
  9. /**
  10. * struct ks8842_platform_data - Platform data of the KS8842 network driver
  11. * @macaddr: The MAC address of the device, set to all 0:s to use the on in
  12. * the chip.
  13. * @rx_dma_channel: The DMA channel to use for RX, -1 for none.
  14. * @tx_dma_channel: The DMA channel to use for TX, -1 for none.
  15. *
  16. */
  17. struct ks8842_platform_data {
  18. u8 macaddr[ETH_ALEN];
  19. int rx_dma_channel;
  20. int tx_dma_channel;
  21. };
  22. #endif