stubs.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:4k
- /* $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-2002 Silicon Graphics, Inc. All rights reserved.
- */
- #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>
- #include <asm/sn/nic.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 *
- snia_kmem_alloc_node(register size_t size, register int flags, cnodeid_t node)
- {
- /* Allocates on node 'node' */
- FIXME("snia_kmem_alloc_node : use kmalloc");
- return(kmalloc(size, GFP_KERNEL));
- }
- void *
- snia_kmem_zalloc_node(register size_t size, register int flags, cnodeid_t node)
- {
- FIXME("snia_kmem_zalloc_node : use kmalloc");
- return(kmalloc(size, GFP_KERNEL));
- }
- void
- snia_kmem_free(void *where, int size)
- {
- FIXME("snia_kmem_free : use kfree");
- return(kfree(where));
- }
- void *
- snia_kmem_zone_alloc(register zone_t *zone, int flags)
- {
- FIXME("snia_kmem_zone_alloc : return null");
- return((void *)0);
- }
- void
- snia_kmem_zone_free(register zone_t *zone, void *ptr)
- {
- FIXME("snia_kmem_zone_free : no-op");
- }
- zone_t *
- snia_kmem_zone_init(register int size, char *zone_name)
- {
- FIXME("snia_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_checkn");
- }
- char *
- nic_vertex_info_get(devfs_handle_t v)
- {
- FIXME("nic_vertex_info_getn");
- return(NULL);
- }
- int
- vector_read_node(net_vec_t dest, nasid_t nasid,
- int write_id, int address,
- uint64_t *value)
- {
- FIXME("vector_read_noden");
- return(0);
- }
- int
- vector_write_node(net_vec_t dest, nasid_t nasid,
- int write_id, int address,
- uint64_t value)
- {
- FIXME("vector_write_noden");
- return(0);
- }