io.h 915B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2004 Tobias Lorenz
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef ETHERBOOT_IO_H
  9. #define ETHERBOOT_IO_H
  10. #define virt_to_phys(vaddr) ((unsigned long) (vaddr))
  11. #define phys_to_virt(vaddr) ((void *) (vaddr))
  12. #define virt_to_bus virt_to_phys
  13. #define bus_to_virt phys_to_virt
  14. #define iounmap(addr) ((void)0)
  15. #define ioremap(physaddr, size) (physaddr)
  16. extern unsigned char inb (unsigned long int port);
  17. extern unsigned short int inw (unsigned long int port);
  18. extern unsigned long int inl (unsigned long int port);
  19. extern void outb (unsigned char value, unsigned long int port);
  20. extern void outw (unsigned short value, unsigned long int port);
  21. extern void outl (unsigned long value, unsigned long int port);
  22. #endif /* ETHERBOOT_IO_H */