kill more inventory code
PATCH 1/1 kill more inventory code
This code as copied from IRIX stores lots of info in the internal hwgfs, but it's never retrieved on Linux as the architecture is too different to make use of it.
arch/ia64/sn/io/hwgfs/hcl.c +0 -24
@@ -53,12 +53,6 @@static unsigned int boot_options =OPTION_NONE ;#endif -invplace_t invplace_none = { -GRAPH_VERTEX_NONE , -GRAPH_VERTEX_PLACE_NONE , -NULL -}; -/* * init_hcl() - Boot time initialization. *
@@ -718,24 +712,6 @@0 ,/* minor */ 0 ,/* char | block */ 1)); /* traverse symlinks */ -} - -/* -* hwgraph_inventory_remove - Removes an inventory entry. -* -* Remove an inventory item associated with a vertex. It is the caller's -* responsibility to make sure that there are no races between removing -* inventory from a vertex and simultaneously removing that vertex. -*/ -int -hwgraph_inventory_remove (vertex_hdl_t de, -int class, -int type, -major_t controller, -minor_t unit, -int state) -{ -return (0 );/* Just a Stub for IRIX code. */ }/*
arch/ia64/sn/io/sn2/klgraph.c +1 -166
188 lines not on this page · raw message
arch/ia64/sn/io/sn2/pic.c +0 -38
@@ -38,32 +38,6 @@extern void pcibr_driver_reg_callback (vertex_hdl_t ,int ,int ,int );extern void pcibr_driver_unreg_callback (vertex_hdl_t ,int ,int ,int ); - -/* -* copy inventory_t from conn_v to peer_conn_v -*/ -int -pic_bus1_inventory_dup (vertex_hdl_t conn_v,vertex_hdl_t peer_conn_v) -{ -inventory_t *pinv, *peer_pinv; - -if (hwgraph_info_get_LBL (conn_v,INFO_LBL_INVENT , - (arbitrary_info_t *)&pinv) =GRAPH_SUCCESS ) - { -NEW (peer_pinv); -bcopy ((const char *)pinv, (char *)peer_pinv,sizeof (inventory_t)); -if (hwgraph_info_add_LBL (peer_conn_v,INFO_LBL_INVENT , - (arbitrary_info_t )peer_pinv) !=GRAPH_SUCCESS ) { -DEL (peer_pinv); -return 0 ; - } -return 1 ; - } - -printk ("pic_bus1_inventory_dup: cannot get INFO_LBL_INVENT from 0x%lx\n " , (uint64_t )conn_v); -return 0 ; -} -/* * copy xwidget_info_t from conn_v to peer_conn_v */
@@ -167,18 +141,6 @@else {PCIBR_DEBUG_ALWAYS ((PCIBR_DEBUG_ATTACH , conn_v,"pic_bus1_redist: added vertex %v\n" , peer_conn_v)); - -/* Now hang appropiate stuff off of the new -* vertex. We bail out if we cannot add something. -* In that case, we don't remove the newly added -* vertex but that should be safe and we don't -* really expect the additions to fail anyway. -*/ -#if 0 -if (!pic_bus1_inventory_dup (conn_v, peer_conn_v)) -return 0 ; -pic_bus1_device_desc_dup (conn_v, peer_conn_v); -#endif if (!pic_bus1_widget_info_dup (conn_v, peer_conn_v, xbow_peer))return 0 ;
arch/ia64/sn/io/sn2/xtalk.c +0 -5
@@ -912,11 +912,6 @@if (!(widget_info =xwidget_info_get (widget)))return (1 ); -/* Remove the inventory information associated -* with the widget. -*/ -hwgraph_inventory_remove (widget,-1 ,-1 ,-1 ,-1 ,-1 ); - hwid = &(widget_info->w_hwid);/* Clean out the xwidget information */
include/asm-ia64/sn/hcl.h +0 -9
@@ -20,11 +20,6 @@typedef long arbitrary_info_t ;typedef long arb_info_desc_t ; -/* Support for INVENTORY */ -struct inventory_s ; -struct invplace_s ; - -/* * Reserve room in every vertex for 2 pieces of fast access indexed information * Note that we do not save a pointer to the bdevsw or cdevsw[] tables anymore.
@@ -80,10 +75,6 @@extern graph_error_t hwgraph_traverse (vertex_hdl_t ,char *,vertex_hdl_t *);extern int hwgraph_vertex_get_next (vertex_hdl_t *,vertex_hdl_t *); -extern int hwgraph_inventory_get_next (vertex_hdl_t ,invplace_t *, -inventory_t **); -extern int hwgraph_inventory_add (vertex_hdl_t ,int ,int ,major_t ,minor_t ,int ); -extern int hwgraph_inventory_remove (vertex_hdl_t ,int ,int ,major_t ,minor_t ,int );extern int hwgraph_controller_num_get (vertex_hdl_t );extern void hwgraph_controller_num_set (vertex_hdl_t ,int );extern int hwgraph_path_ad (vertex_hdl_t ,char *,vertex_hdl_t *);
include/asm-ia64/sn/invent.h +3 -719
728 lines not on this page · raw message