2
0

ioport-user.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * qemu user ioport functions
  3. *
  4. * Copyright (c) 2003-2008 Fabrice Bellard
  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 as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #include <stdio.h>
  20. #include "qemu.h"
  21. #include "qemu-common.h"
  22. #include "ioport.h"
  23. void cpu_outb(pio_addr_t addr, uint8_t val)
  24. {
  25. fprintf(stderr, "outb: port=0x%04"FMT_pioaddr", data=%02"PRIx8"\n",
  26. addr, val);
  27. }
  28. void cpu_outw(pio_addr_t addr, uint16_t val)
  29. {
  30. fprintf(stderr, "outw: port=0x%04"FMT_pioaddr", data=%04"PRIx16"\n",
  31. addr, val);
  32. }
  33. void cpu_outl(pio_addr_t addr, uint32_t val)
  34. {
  35. fprintf(stderr, "outl: port=0x%04"FMT_pioaddr", data=%08"PRIx32"\n",
  36. addr, val);
  37. }
  38. uint8_t cpu_inb(pio_addr_t addr)
  39. {
  40. fprintf(stderr, "inb: port=0x%04"FMT_pioaddr"\n", addr);
  41. return 0;
  42. }
  43. uint16_t cpu_inw(pio_addr_t addr)
  44. {
  45. fprintf(stderr, "inw: port=0x%04"FMT_pioaddr"\n", addr);
  46. return 0;
  47. }
  48. uint32_t cpu_inl(pio_addr_t addr)
  49. {
  50. fprintf(stderr, "inl: port=0x%04"FMT_pioaddr"\n", addr);
  51. return 0;
  52. }