Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | /* $Id$ * * 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) 1992 - 1997, 2000 Silicon Graphics, Inc. * Copyright (C) 2000 by Colin Ngam */ #include <linux/types.h> #include <linux/ctype.h> #include <linux/mm.h> #include <linux/slab.h> #include <asm/sn/sgi.h> #include <asm/sn/invent.h> #include <asm/sn/hcl.h> #include <asm/sn/labelcl.h> #include <asm/sn/pci/bridge.h> #include <asm/sn/ioerror_handling.h> #include <asm/sn/pci/pciio.h> #include <asm/sn/slotnum.h> #include <asm/sn/vector.h> /****** ****** hack defines ...... ******/ int pcibr_prefetch_enable_rev, pcibr_wg_enable_rev; int default_intr_pri; int force_fire_and_forget; int ignore_conveyor_override; devfs_handle_t dummy_vrtx; /* Needed for cpuid_to_vertex() in hack.h */ /* ARGSUSED */ void hub_widgetdev_enable(devfs_handle_t xconn_vhdl, int devnum) {FIXME("hub_widgetdev_enable");} /* ARGSUSED */ void hub_widgetdev_shutdown(devfs_handle_t xconn_vhdl, int devnum) {FIXME("hub_widgetdev_shutdown");} /* ARGSUSED */ void hub_widget_reset(devfs_handle_t hubv, xwidgetnum_t widget) {FIXME("hub_widget_reset");} boolean_t is_sys_critical_vertex(devfs_handle_t x) { FIXME("is_sys_critical_vertex : returns 0"); return(0); } char * nic_bridge_vertex_info(devfs_handle_t v, nic_data_t mcr) { FIXME("nic_bridge_vertex_info : returns NULL"); return((char *)0); } void * kmem_alloc_node(register size_t size, register int flags, cnodeid_t node) { /* Allocates on node 'node' */ FIXME("kmem_alloc_node : use kmalloc"); return(kmalloc(size, GFP_KERNEL)); } void * kmem_zalloc_node(register size_t size, register int flags, cnodeid_t node) { FIXME("kmem_zalloc_node : use kmalloc"); return(kmalloc(size, GFP_KERNEL)); } void kmem_free(void *where, int size) { FIXME("kmem_free : use kfree"); return(kfree(where)); } void * kmem_zone_alloc(register zone_t *zone, int flags) { FIXME("kmem_zone_alloc : return null"); return((void *)0); } void kmem_zone_free(register zone_t *zone, void *ptr) { FIXME("kmem_zone_free : no-op"); } zone_t * kmem_zone_init(register int size, char *zone_name) { FIXME("kmem_zone_free : returns NULL"); return((zone_t *)0); } int compare_and_swap_ptr(void **location, void *old_ptr, void *new_ptr) { FIXME("compare_and_swap_ptr : NOT ATOMIC"); if (*location == old_ptr) { *location = new_ptr; return(1); } else return(0); } void * swap_ptr(void **loc, void *new) { FIXME("swap_ptr : returns null"); return((void *)0); } /* For ml/SN/SN1/slots.c */ /* ARGSUSED */ slotid_t get_widget_slotnum(int xbow, int widget) {FIXME("get_widget_slotnum"); return (unsigned char)NULL;} /* For router */ int router_init(cnodeid_t cnode,int writeid, void *npda_rip) {FIXME("router_init"); return(0);} /* From io/ioerror_handling.c */ error_return_code_t sys_critical_graph_vertex_add(devfs_handle_t parent, devfs_handle_t child) {FIXME("sys_critical_graph_vertex_add"); return(0);} /* From io/ioc3.c */ devfs_handle_t ioc3_console_vhdl_get(void) {FIXME("ioc3_console_vhdl_get"); return( (devfs_handle_t)-1);} void nic_vmc_check(devfs_handle_t vhdl, char *nicinfo) { FIXME("nic_vmc_check\n"); } char * nic_vertex_info_get(devfs_handle_t v) { FIXME("nic_vertex_info_get\n"); return(NULL); } int vector_read_node(net_vec_t dest, nasid_t nasid, int write_id, int address, uint64_t *value) { FIXME("vector_read_node\n"); return(0); } int vector_write_node(net_vec_t dest, nasid_t nasid, int write_id, int address, uint64_t value) { FIXME("vector_write_node\n"); return(0); } |