core.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * I2O core internal declarations
  3. *
  4. * Copyright (C) 2005 Markus Lidel <Markus.Lidel@shadowconnect.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * Fixes/additions:
  12. * Markus Lidel <Markus.Lidel@shadowconnect.com>
  13. * initial version.
  14. */
  15. /* Exec-OSM */
  16. extern struct bus_type i2o_bus_type;
  17. extern struct i2o_driver i2o_exec_driver;
  18. extern int i2o_exec_lct_get(struct i2o_controller *);
  19. extern int __init i2o_exec_init(void);
  20. extern void __exit i2o_exec_exit(void);
  21. /* driver */
  22. extern int i2o_driver_dispatch(struct i2o_controller *, u32);
  23. extern int __init i2o_driver_init(void);
  24. extern void __exit i2o_driver_exit(void);
  25. /* PCI */
  26. extern int __init i2o_pci_init(void);
  27. extern void __exit i2o_pci_exit(void);
  28. /* device */
  29. extern void i2o_device_remove(struct i2o_device *);
  30. extern int i2o_device_parse_lct(struct i2o_controller *);
  31. extern int i2o_device_init(void);
  32. extern void i2o_device_exit(void);
  33. /* IOP */
  34. extern struct i2o_controller *i2o_iop_alloc(void);
  35. extern void i2o_iop_free(struct i2o_controller *);
  36. extern int i2o_iop_add(struct i2o_controller *);
  37. extern void i2o_iop_remove(struct i2o_controller *);
  38. /* config */
  39. extern int i2o_parm_issue(struct i2o_device *, int, void *, int, void *, int);
  40. /* control registers relative to c->base */
  41. #define I2O_IRQ_STATUS 0x30
  42. #define I2O_IRQ_MASK 0x34
  43. #define I2O_IN_PORT 0x40
  44. #define I2O_OUT_PORT 0x44
  45. #define I2O_IRQ_OUTBOUND_POST 0x00000008