最終更新:2014-05-20 (火) 15:54:38 (2317d)  

asm/io.h
Top / asm / io.h

I/O port access

メモ

  • 「カーネル空間アドレス」=「物理メモリアドレス?」+PAGE_OFFSET?

マクロ・関数

traditional input/output functions (I/OマップドI/O)

  • inb_p?
  • inw_p?
  • inl_p?
  • outb_p?
  • outw_p?
  • outl_p?

the "generic" interfaces for doing new-style memory-mapped or PIO accesses. (メモリマップドI/Oの新しい形式)

  • ioread8?
  • ioread16?
  • ioread16be?
  • ioread32?
  • ioread32be?

readX/writeX (メモリマップドI/Oの古い形式)

  • readX/writeX() are used to access memory mapped devices. On some architectures the memory mapped IO stuff needs to be accessed differently.
  • On the simple architectures, we just read/write the memory location directly.
  • readb?
  • readw?
  • readl?
  • readq?

その他

  • pci_iounmap?
  • virt_to_phys?
  • phys_to_virt?
  • iounmap?
  • ioport_map?
  • ioport_umap?
  • xlate_dev_kmem_ptr?
  • xlate_dev_mem_ptr?
  • virt_to_bus?
  • bus_to_virt?
  • memset_io?
  • memset_fromio?
  • memset_toio?

関連