404

[ Avaa Bypassed ]




Upload:

Command:

botdev@13.59.147.113: ~ $
/*
 * 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.
 *
 * Copyright (c) 2005 Silicon Graphics, Inc. All rights reserved.
 */

#ifndef _ASM_IA64_SN_TIO_TIOCX_H
#define _ASM_IA64_SN_TIO_TIOCX_H

#ifdef __KERNEL__

struct cx_id_s {
	unsigned int part_num;
	unsigned int mfg_num;
	int nasid;
};

struct cx_dev {
	struct cx_id_s cx_id;
	int bt;				/* board/blade type */
	void *soft;			/* driver specific */
	struct hubdev_info *hubdev;
	struct device dev;
	struct cx_drv *driver;
};

struct cx_device_id {
	unsigned int part_num;
	unsigned int mfg_num;
};

struct cx_drv {
	char *name;
	const struct cx_device_id *id_table;
	struct device_driver driver;
	int (*probe) (struct cx_dev * dev, const struct cx_device_id * id);
	int (*remove) (struct cx_dev * dev);
};

/* create DMA address by stripping AS bits */
#define TIOCX_DMA_ADDR(a) (u64)((u64)(a) & 0xffffcfffffffffUL)

#define TIOCX_TO_TIOCX_DMA_ADDR(a) (u64)(((u64)(a) & 0xfffffffff) |  \
                                  ((((u64)(a)) & 0xffffc000000000UL) <<2))

#define TIO_CE_ASIC_PARTNUM 0xce00
#define TIOCX_CORELET 3

/* These are taken from tio_mmr_as.h */
#define TIO_ICE_FRZ_CFG               TIO_MMR_ADDR_MOD(0x00000000b0008100UL)
#define TIO_ICE_PMI_TX_CFG            TIO_MMR_ADDR_MOD(0x00000000b000b100UL)
#define TIO_ICE_PMI_TX_DYN_CREDIT_STAT_CB3 TIO_MMR_ADDR_MOD(0x00000000b000be18UL)
#define TIO_ICE_PMI_TX_DYN_CREDIT_STAT_CB3_CREDIT_CNT_MASK 0x000000000000000fUL

#define to_cx_dev(n) container_of(n, struct cx_dev, dev)
#define to_cx_driver(drv) container_of(drv, struct cx_drv, driver)

extern struct sn_irq_info *tiocx_irq_alloc(nasid_t, int, int, nasid_t, int);
extern void tiocx_irq_free(struct sn_irq_info *);
extern int cx_device_unregister(struct cx_dev *);
extern int cx_device_register(nasid_t, int, int, struct hubdev_info *, int);
extern int cx_driver_unregister(struct cx_drv *);
extern int cx_driver_register(struct cx_drv *);
extern u64 tiocx_dma_addr(u64 addr);
extern u64 tiocx_swin_base(int nasid);
extern void tiocx_mmr_store(int nasid, u64 offset, u64 value);
extern u64 tiocx_mmr_load(int nasid, u64 offset);

#endif				//  __KERNEL__
#endif				// _ASM_IA64_SN_TIO_TIOCX__

Filemanager

Name Type Size Permission Actions
sn2 Folder 0755
acpi.h File 423 B 0644
addrs.h File 9.69 KB 0644
arch.h File 2.72 KB 0644
bte.h File 7.61 KB 0644
clksupport.h File 844 B 0644
geo.h File 3.51 KB 0644
intr.h File 2.24 KB 0644
io.h File 5.68 KB 0644
ioc3.h File 7.91 KB 0644
klconfig.h File 10.15 KB 0644
l1.h File 2.28 KB 0644
leds.h File 819 B 0644
module.h File 4.01 KB 0644
mspec.h File 1.78 KB 0644
nodepda.h File 2.21 KB 0644
pcibr_provider.h File 5.52 KB 0644
pcibus_provider_defs.h File 2.16 KB 0644
pcidev.h File 3.05 KB 0644
pda.h File 1.94 KB 0644
pic.h File 9.06 KB 0644
rw_mmr.h File 944 B 0644
shub_mmr.h File 26.25 KB 0644
shubio.h File 127.34 KB 0644
simulator.h File 917 B 0644
sn_cpuid.h File 4.24 KB 0644
sn_feature_sets.h File 1.61 KB 0644
sn_sal.h File 33.14 KB 0644
tioca.h File 20.21 KB 0644
tioca_provider.h File 6 KB 0644
tioce.h File 29.87 KB 0644
tioce_provider.h File 1.49 KB 0644
tiocp.h File 8.3 KB 0644
tiocx.h File 2.24 KB 0644
types.h File 957 B 0644