[IA64] Tollhouse HP: IA64 arch changes
arch/ia64/sn and include/asm-ia64/sn changes required to support Tollhouse system PCI hotplug, fixes the ia64_sn_sysctl_ioboard_get call, and introduces the PRF_HOTPLUG_SUPPORT feature bit. Signed-off-by: Prarit Bhargava <prarit@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:

committed by
Tony Luck

parent
b17ea91a43
commit
f90aa8c4fe
@@ -34,6 +34,8 @@
|
||||
#define L1_BRICKTYPE_IA 0x6b /* k */
|
||||
#define L1_BRICKTYPE_ATHENA 0x2b /* + */
|
||||
#define L1_BRICKTYPE_DAYTONA 0x7a /* z */
|
||||
#define L1_BRICKTYPE_1932 0x2c /* . */
|
||||
#define L1_BRICKTYPE_191010 0x2e /* , */
|
||||
|
||||
/* board type response codes */
|
||||
#define L1_BOARDTYPE_IP69 0x0100 /* CA */
|
||||
@@ -46,5 +48,4 @@
|
||||
#define L1_BOARDTYPE_DAYTONA 0x0800 /* AD */
|
||||
#define L1_BOARDTYPE_INVAL (-1) /* invalid brick type */
|
||||
|
||||
|
||||
#endif /* _ASM_IA64_SN_L1_H */
|
||||
|
@@ -144,4 +144,5 @@ extern int sal_pcibr_slot_enable(struct pcibus_info *soft, int device,
|
||||
void *resp);
|
||||
extern int sal_pcibr_slot_disable(struct pcibus_info *soft, int device,
|
||||
int action, void *resp);
|
||||
extern u16 sn_ioboard_to_pci_bus(struct pci_bus *pci_bus);
|
||||
#endif
|
||||
|
@@ -76,6 +76,7 @@ extern void sn_pci_controller_fixup(int segment, int busnum,
|
||||
struct pci_bus *bus);
|
||||
extern void sn_bus_store_sysdata(struct pci_dev *dev);
|
||||
extern void sn_bus_free_sysdata(void);
|
||||
extern void sn_generate_path(struct pci_bus *pci_bus, char *address);
|
||||
extern void sn_pci_fixup_slot(struct pci_dev *dev);
|
||||
extern void sn_pci_unfixup_slot(struct pci_dev *dev);
|
||||
extern void sn_irq_lh_init(void);
|
||||
|
@@ -30,8 +30,7 @@ extern int sn_prom_feature_available(int id);
|
||||
|
||||
#define PRF_PAL_CACHE_FLUSH_SAFE 0
|
||||
#define PRF_DEVICE_FLUSH_LIST 1
|
||||
|
||||
|
||||
#define PRF_HOTPLUG_SUPPORT 2
|
||||
|
||||
/* --------------------- OS Features -------------------------------*/
|
||||
|
||||
|
@@ -907,18 +907,22 @@ ia64_sn_sysctl_tio_clock_reset(nasid_t nasid)
|
||||
/*
|
||||
* Get the associated ioboard type for a given nasid.
|
||||
*/
|
||||
static inline int
|
||||
ia64_sn_sysctl_ioboard_get(nasid_t nasid)
|
||||
static inline s64
|
||||
ia64_sn_sysctl_ioboard_get(nasid_t nasid, u16 *ioboard)
|
||||
{
|
||||
struct ia64_sal_retval rv;
|
||||
SAL_CALL_REENTRANT(rv, SN_SAL_SYSCTL_OP, SAL_SYSCTL_OP_IOBOARD,
|
||||
nasid, 0, 0, 0, 0, 0);
|
||||
if (rv.v0 != 0)
|
||||
return (int)rv.v0;
|
||||
if (rv.v1 != 0)
|
||||
return (int)rv.v1;
|
||||
struct ia64_sal_retval isrv;
|
||||
SAL_CALL_REENTRANT(isrv, SN_SAL_SYSCTL_OP, SAL_SYSCTL_OP_IOBOARD,
|
||||
nasid, 0, 0, 0, 0, 0);
|
||||
if (isrv.v0 != 0) {
|
||||
*ioboard = isrv.v0;
|
||||
return isrv.status;
|
||||
}
|
||||
if (isrv.v1 != 0) {
|
||||
*ioboard = isrv.v1;
|
||||
return isrv.status;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return isrv.status;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user