rio.h (2ec3ba69faf301fb599e3651515e808e8efa533e) | rio.h (9edbc30b434f56258d03faac5daf37a555384db3) |
---|---|
1/* 2 * RapidIO interconnect services 3 * 4 * Copyright 2005 MontaVista Software, Inc. 5 * Matt Porter <mporter@kernel.crashing.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 28 unchanged lines hidden (view full) --- 37 u16 route_destid, u8 *route_port, int lock); 38extern int rio_route_clr_table(struct rio_dev *rdev, u16 table, int lock); 39extern int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock); 40extern struct rio_dev *rio_get_comptag(u32 comp_tag, struct rio_dev *from); 41extern int rio_add_device(struct rio_dev *rdev); 42extern int rio_enable_rx_tx_port(struct rio_mport *port, int local, u16 destid, 43 u8 hopcount, u8 port_num); 44extern int rio_register_scan(int mport_id, struct rio_scan *scan_ops); | 1/* 2 * RapidIO interconnect services 3 * 4 * Copyright 2005 MontaVista Software, Inc. 5 * Matt Porter <mporter@kernel.crashing.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 28 unchanged lines hidden (view full) --- 37 u16 route_destid, u8 *route_port, int lock); 38extern int rio_route_clr_table(struct rio_dev *rdev, u16 table, int lock); 39extern int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock); 40extern struct rio_dev *rio_get_comptag(u32 comp_tag, struct rio_dev *from); 41extern int rio_add_device(struct rio_dev *rdev); 42extern int rio_enable_rx_tx_port(struct rio_mport *port, int local, u16 destid, 43 u8 hopcount, u8 port_num); 44extern int rio_register_scan(int mport_id, struct rio_scan *scan_ops); |
45extern int rio_unregister_scan(int mport_id); | 45extern int rio_unregister_scan(int mport_id, struct rio_scan *scan_ops); |
46extern void rio_attach_device(struct rio_dev *rdev); 47extern struct rio_mport *rio_find_mport(int mport_id); | 46extern void rio_attach_device(struct rio_dev *rdev); 47extern struct rio_mport *rio_find_mport(int mport_id); |
48extern int rio_mport_scan(int mport_id); |
|
48 49/* Structures internal to the RIO core code */ 50extern struct device_attribute rio_dev_attrs[]; 51extern struct bus_attribute rio_bus_attrs[]; 52 53#define RIO_GET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x00ff0000) >> 16)) 54#define RIO_SET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x000000ff) << 16)) | 49 50/* Structures internal to the RIO core code */ 51extern struct device_attribute rio_dev_attrs[]; 52extern struct bus_attribute rio_bus_attrs[]; 53 54#define RIO_GET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x00ff0000) >> 16)) 55#define RIO_SET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x000000ff) << 16)) |