TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Macros
Référence du fichier ioports.h

Définition des macros pour faire des IO avec le matériel. Intel-specific I/O space access routines. Plus de détails...

Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Macros

#define outb(value, port)
 
#define inb(port)
 
#define outw(value, port)
 
#define inw(port)
 
#define outl(value, port)
 
#define inl(port)
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010, 2011, 2012 - TacOS developers.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Documentation des macros

#define inb (   port)
Valeur :
({ \
unsigned char _v; \
__asm__ volatile ("inb %w1,%0" \
:"=a" (_v) \
:"Nd" (port)); \
_v; \
})

Read one byte from port

#define inl (   port)
Valeur :
({ \
unsigned int _v; \
__asm__ volatile ("inl %w1,%0" \
:"=a" (_v) \
:"Nd" (port)); \
_v; \
})

read one long from port

#define inw (   port)
Valeur :
({ \
unsigned int _v; \
__asm__ volatile ("inw %w1,%w0" \
:"=a" (_v) \
:"Nd" (port)); \
_v; \
})

Read one word from port

#define outb (   value,
  port 
)
Valeur :
__asm__ volatile ("outb %b0,%w1" \
::"a" (value),"Nd" (port))

Write value (byte) on port

#define outl (   value,
  port 
)
Valeur :
__asm__ volatile ("outl %0,%w1" \
::"a" (value),"Nd" (port))

write value (long) on port

#define outw (   value,
  port 
)
Valeur :
__asm__ volatile ("outw %w0,%w1" \
::"a" (value),"Nd" (port))

Write value (word) on port