devices.h 786 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * arch/arm/mach-ks8695/include/mach/devices.h
  3. *
  4. * Copyright (C) 2006 Andrew Victor
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_ARCH_DEVICES_H
  11. #define __ASM_ARCH_DEVICES_H
  12. #include <linux/pci.h>
  13. /* Ethernet */
  14. extern void __init ks8695_add_device_wan(void);
  15. extern void __init ks8695_add_device_lan(void);
  16. extern void __init ks8695_add_device_hpna(void);
  17. /* PCI */
  18. #define KS8695_MODE_PCI 0
  19. #define KS8695_MODE_MINIPCI 1
  20. #define KS8695_MODE_CARDBUS 2
  21. struct ks8695_pci_cfg {
  22. short mode;
  23. int (*map_irq)(const struct pci_dev *, u8, u8);
  24. };
  25. extern __init void ks8695_init_pci(struct ks8695_pci_cfg *);
  26. #endif