wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2001 |
| 3 | * Denis Peter, MPL AG Switzerland, d.peter@mpl.ch |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
wdenk | 7205e40 | 2003-09-10 22:30:53 +0000 | [diff] [blame] | 8 | #ifndef _ISA_H_ |
| 9 | #define _ISA_H_ |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 10 | /* Super IO */ |
| 11 | #define SIO_CFG_PORT 0x3F0 /* Config Port Address */ |
| 12 | |
wdenk | 7205e40 | 2003-09-10 22:30:53 +0000 | [diff] [blame] | 13 | #if defined(CONFIG_PIP405) |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 14 | /* table fore SIO initialization */ |
| 15 | typedef struct { |
| 16 | const uchar index; |
| 17 | const uchar val; |
| 18 | } SIO_LOGDEV_TABLE; |
| 19 | |
| 20 | typedef struct { |
| 21 | const uchar ldev; |
| 22 | const SIO_LOGDEV_TABLE *ldev_table; |
| 23 | } SIO_TABLE; |
| 24 | |
| 25 | |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 26 | unsigned char open_cfg_super_IO(int address); |
| 27 | unsigned char read_cfg_super_IO(int address, unsigned char function, unsigned char regaddr); |
| 28 | void write_cfg_super_IO(int address, unsigned char function, unsigned char regaddr, unsigned char data); |
| 29 | void close_cfg_super_IO(int address); |
| 30 | void isa_sio_setup(void); |
wdenk | 7205e40 | 2003-09-10 22:30:53 +0000 | [diff] [blame] | 31 | #endif |
| 32 | |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 33 | void isa_irq_install_handler(int vec, interrupt_handler_t *handler, void *arg); |
| 34 | void isa_irq_free_handler(int vec); |
| 35 | int handle_isa_int(void); |
wdenk | 7205e40 | 2003-09-10 22:30:53 +0000 | [diff] [blame] | 36 | void isa_init_irq_contr(void); |
| 37 | void isa_show_irq(void); |
| 38 | int isa_irq_get_count(int vec); |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 39 | |
| 40 | |
| 41 | #endif |