[BACK]Return to hub.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / include / asm-mips / sn

File: [Development] / linux-2.6-xfs / include / asm-mips / sn / hub.h (download)

Revision 1.2, Tue May 11 05:57:47 2004 UTC (13 years, 5 months ago) by nathans
Branch: MAIN
Changes since 1.1: +20 -0 lines

Merge up to 2.6.6

#ifndef __ASM_SN_HUB_H
#define __ASM_SN_HUB_H

#include <linux/types.h>
#include <linux/cpumask.h>
#include <asm/sn/types.h>
#include <asm/sn/io.h>
#include <asm/sn/klkernvars.h>
#include <asm/xtalk/xtalk.h>

#define LEVELS_PER_SLICE	128

struct slice_data {
	unsigned long irq_alloc_mask[2];
	unsigned long irq_enable_mask[2];
	int level_to_irq[LEVELS_PER_SLICE];
};

struct hub_data {
	kern_vars_t	kern_vars;
	DECLARE_BITMAP  (h_bigwin_used, HUB_NUM_BIG_WINDOW);
	cpumask_t	h_cpus;
	unsigned long slice_map;
	struct slice_data slice[2];
};

extern struct hub_data *hub_data[];
#define HUB_DATA(n)		(hub_data[(n)])

/* ip27-hubio.c */
extern unsigned long hub_pio_map(cnodeid_t cnode, xwidgetnum_t widget,
			  unsigned long xtalk_addr, size_t size);
extern void hub_pio_init(cnodeid_t cnode);

#endif /* __ASM_SN_HUB_H */