linux/include/linux/eisa.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_EISA_H
#define _LINUX_EISA_H

#include <linux/ioport.h>
#include <linux/device.h>
#include <linux/mod_devicetable.h>

#define EISA_MAX_SLOTS

#define EISA_MAX_RESOURCES

/* A few EISA constants/offsets... */

#define EISA_DMA1_STATUS
#define EISA_INT1_CTRL
#define EISA_INT1_MASK
#define EISA_INT2_CTRL
#define EISA_INT2_MASK
#define EISA_DMA2_STATUS
#define EISA_DMA2_WRITE_SINGLE
#define EISA_EXT_NMI_RESET_CTRL
#define EISA_INT1_EDGE_LEVEL
#define EISA_INT2_EDGE_LEVEL
#define EISA_VENDOR_ID_OFFSET
#define EISA_CONFIG_OFFSET

#define EISA_CONFIG_ENABLED
#define EISA_CONFIG_FORCED

/* There is not much we can say about an EISA device, apart from
 * signature, slot number, and base address. dma_mask is set by
 * default to parent device mask..*/

struct eisa_device {};

#define to_eisa_device(n)

static inline int eisa_get_region_index (void *addr)
{}

struct eisa_driver {};

#define to_eisa_driver(drv)

/* These external functions are only available when EISA support is enabled. */
#ifdef CONFIG_EISA

extern struct bus_type eisa_bus_type;
int eisa_driver_register (struct eisa_driver *edrv);
void eisa_driver_unregister (struct eisa_driver *edrv);

#else /* !CONFIG_EISA */

static inline int eisa_driver_register (struct eisa_driver *edrv) { return 0; }
static inline void eisa_driver_unregister (struct eisa_driver *edrv) { }

#endif /* !CONFIG_EISA */

/* Mimics pci.h... */
static inline void *eisa_get_drvdata (struct eisa_device *edev)
{}

static inline void eisa_set_drvdata (struct eisa_device *edev, void *data)
{}

/* The EISA root device. There's rumours about machines with multiple
 * busses (PA-RISC ?), so we try to handle that. */

struct eisa_root_device {};

int eisa_root_register (struct eisa_root_device *root);

#ifdef CONFIG_EISA
extern int EISA_bus;
#else
#define EISA_bus
#endif

#endif