mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Privatize register_ioport_read/write
No more users outside of ioport.c. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
bcc37e24bd
commit
8ab9b41876
2 changed files with 4 additions and 8 deletions
|
@ -39,10 +39,6 @@ typedef uint32_t (IOPortReadFunc)(void *opaque, uint32_t address);
|
|||
typedef void (IOPortDestructor)(void *opaque);
|
||||
|
||||
void ioport_register(IORange *iorange);
|
||||
int register_ioport_read(pio_addr_t start, int length, int size,
|
||||
IOPortReadFunc *func, void *opaque);
|
||||
int register_ioport_write(pio_addr_t start, int length, int size,
|
||||
IOPortWriteFunc *func, void *opaque);
|
||||
void isa_unassign_ioport(pio_addr_t start, int length);
|
||||
bool isa_is_ioport_assigned(pio_addr_t start);
|
||||
|
||||
|
|
8
ioport.c
8
ioport.c
|
@ -139,8 +139,8 @@ static int ioport_bsize(int size, int *bsize)
|
|||
}
|
||||
|
||||
/* size is the word size in byte */
|
||||
int register_ioport_read(pio_addr_t start, int length, int size,
|
||||
IOPortReadFunc *func, void *opaque)
|
||||
static int register_ioport_read(pio_addr_t start, int length, int size,
|
||||
IOPortReadFunc *func, void *opaque)
|
||||
{
|
||||
int i, bsize;
|
||||
|
||||
|
@ -159,8 +159,8 @@ int register_ioport_read(pio_addr_t start, int length, int size,
|
|||
}
|
||||
|
||||
/* size is the word size in byte */
|
||||
int register_ioport_write(pio_addr_t start, int length, int size,
|
||||
IOPortWriteFunc *func, void *opaque)
|
||||
static int register_ioport_write(pio_addr_t start, int length, int size,
|
||||
IOPortWriteFunc *func, void *opaque)
|
||||
{
|
||||
int i, bsize;
|
||||
|
||||
|
|
Loading…
Reference in a new issue