linux/include/linux/tc.h

/*
 *	Interface to the TURBOchannel related routines.
 *
 *	Copyright (c) 1998  Harald Koerfgen
 *	Copyright (c) 2005  James Simmons
 *	Copyright (c) 2006  Maciej W. Rozycki
 *
 *	Based on:
 *
 *	"TURBOchannel Firmware Specification", EK-TCAAD-FS-004
 *
 *	from Digital Equipment Corporation.
 *
 *	This file is subject to the terms and conditions of the GNU
 *	General Public License.  See the file "COPYING" in the main
 *	directory of this archive for more details.
 */
#ifndef _LINUX_TC_H
#define _LINUX_TC_H

#include <linux/compiler.h>
#include <linux/device.h>
#include <linux/ioport.h>
#include <linux/types.h>

/*
 * Offsets for the ROM header locations for TURBOchannel cards.
 */
#define TC_OLDCARD
#define TC_NEWCARD

#define TC_ROM_WIDTH
#define TC_ROM_STRIDE
#define TC_ROM_SIZE
#define TC_SLOT_SIZE
#define TC_PATTERN0
#define TC_PATTERN1
#define TC_PATTERN2
#define TC_PATTERN3
#define TC_FIRM_VER
#define TC_VENDOR
#define TC_MODULE
#define TC_FIRM_TYPE
#define TC_FLAGS
#define TC_ROM_OBJECTS

/*
 * Information obtained through the get_tcinfo() PROM call.
 */
struct tcinfo {};

/*
 * TURBOchannel bus.
 */
struct tc_bus {};

/*
 * TURBOchannel device.
 */
struct tc_dev {};

#define to_tc_dev(n)

struct tc_device_id {};

/*
 * TURBOchannel driver.
 */
struct tc_driver {};

#define to_tc_driver(drv)

/*
 * Return TURBOchannel clock frequency in Hz.
 */
static inline unsigned long tc_get_speed(struct tc_bus *tbus)
{}

#ifdef CONFIG_TC

extern const struct bus_type tc_bus_type;

extern int tc_register_driver(struct tc_driver *tdrv);
extern void tc_unregister_driver(struct tc_driver *tdrv);

#else /* !CONFIG_TC */

static inline int tc_register_driver(struct tc_driver *tdrv) {}
static inline void tc_unregister_driver(struct tc_driver *tdrv) {}

#endif /* CONFIG_TC */

/*
 * These have to be provided by the architecture.
 */
extern int tc_preadb(u8 *valp, void __iomem *addr);
extern int tc_bus_get_info(struct tc_bus *tbus);
extern void tc_device_get_irq(struct tc_dev *tdev);

#endif /* _LINUX_TC_H */