There are still lots of 'device_t' occurences in (currently unused,
it seems) code. As we stopped using device_t long ago, these should be removed, too. For reference, device_t previously was: typedef struct device * device_t; Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@307 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
16d16c155f
commit
fd9b65d4a1
13 changed files with 74 additions and 72 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
unsigned int agp_scan_bus(struct bus *bus,
|
||||
unsigned min_devfn, unsigned max_devfn, unsigned int max);
|
||||
unsigned int agp_scan_bridge(device_t dev, unsigned int max);
|
||||
unsigned int agp_scan_bridge(struct device *dev, unsigned int max);
|
||||
|
||||
extern struct device_operations default_agp_ops_bus;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
*/
|
||||
void cardbus_read_resources(device_t dev);
|
||||
void cardbus_read_resources(struct device *dev);
|
||||
unsigned int cardbus_scan_bus(struct bus *bus,
|
||||
unsigned min_devfn, unsigned max_devfn, unsigned int max);
|
||||
unsigned int cardbus_scan_bridge(device_t dev, unsigned int max);
|
||||
void cardbus_enable_resources(device_t dev);
|
||||
unsigned int cardbus_scan_bridge(struct device *dev, unsigned int max);
|
||||
void cardbus_enable_resources(struct device *dev);
|
||||
|
||||
extern struct device_operations default_cardbus_ops_bus;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
unsigned int pciexp_scan_bus(struct bus *bus,
|
||||
unsigned min_devfn, unsigned max_devfn, unsigned int max);
|
||||
unsigned int pciexp_scan_bridge(device_t dev, unsigned int max);
|
||||
unsigned int pciexp_scan_bridge(struct device *dev, unsigned int max);
|
||||
|
||||
extern struct device_operations default_pciexp_ops_bus;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
unsigned int pcix_scan_bus(struct bus *bus,
|
||||
unsigned min_devfn, unsigned max_devfn, unsigned int max);
|
||||
unsigned int pcix_scan_bridge(device_t dev, unsigned int max);
|
||||
unsigned int pcix_scan_bridge(struct device *dev, unsigned int max);
|
||||
const char *pcix_speed(unsigned sstatus);
|
||||
|
||||
extern struct device_operations default_pcix_ops_bus;
|
||||
|
|
|
|||
|
|
@ -24,17 +24,17 @@
|
|||
|
||||
/* Common smbus bus operations */
|
||||
struct smbus_bus_operations {
|
||||
int (*quick_read) (device_t dev);
|
||||
int (*quick_write) (device_t dev);
|
||||
int (*recv_byte) (device_t dev);
|
||||
int (*send_byte) (device_t dev, u8 value);
|
||||
int (*read_byte) (device_t dev, u8 addr);
|
||||
int (*write_byte) (device_t dev, u8 addr, u8 value);
|
||||
int (*read_word) (device_t dev, u8 addr);
|
||||
int (*write_word) (device_t dev, u8 addr, u16 value);
|
||||
int (*process_call)(device_t dev, u8 cmd, u16 data);
|
||||
int (*block_read) (device_t dev, u8 cmd, u8 bytes, u8 *buffer);
|
||||
int (*block_write) (device_t dev, u8 cmd, u8 bytes, const u8 *buffer);
|
||||
int (*quick_read) (struct device *dev);
|
||||
int (*quick_write) (struct device *dev);
|
||||
int (*recv_byte) (struct device *dev);
|
||||
int (*send_byte) (struct device *dev, u8 value);
|
||||
int (*read_byte) (struct device *dev, u8 addr);
|
||||
int (*write_byte) (struct device *dev, u8 addr, u8 value);
|
||||
int (*read_word) (struct device *dev, u8 addr);
|
||||
int (*write_word) (struct device *dev, u8 addr, u16 value);
|
||||
int (*process_call)(struct device *dev, u8 cmd, u16 data);
|
||||
int (*block_read) (struct device *dev, u8 cmd, u8 bytes, u8 *buffer);
|
||||
int (*block_write) (struct device *dev, u8 cmd, u8 bytes, const u8 *buffer);
|
||||
};
|
||||
|
||||
static inline const struct smbus_bus_operations *ops_smbus_bus(struct bus *bus)
|
||||
|
|
@ -46,20 +46,20 @@ static inline const struct smbus_bus_operations *ops_smbus_bus(struct bus *bus)
|
|||
}
|
||||
return bops;
|
||||
}
|
||||
struct bus *get_pbus_smbus(device_t dev);
|
||||
int smbus_set_link(device_t dev);
|
||||
struct bus *get_pbus_smbus(struct device *dev);
|
||||
int smbus_set_link(struct device *dev);
|
||||
|
||||
int smbus_quick_read(device_t dev);
|
||||
int smbus_quick_write(device_t dev);
|
||||
int smbus_recv_byte(device_t dev);
|
||||
int smbus_send_byte(device_t dev, u8 byte);
|
||||
int smbus_read_byte(device_t dev, u8 addr);
|
||||
int smbus_write_byte(device_t dev, u8 addr, u8 val);
|
||||
int smbus_read_word(device_t dev, u8 addr);
|
||||
int smbus_write_word(device_t dev, u8 addr, u16 val);
|
||||
int smbus_process_call(device_t dev, u8 cmd, u16 data);
|
||||
int smbus_block_read(device_t dev, u8 cmd, u8 bytes, u8 *buffer);
|
||||
int smbus_block_write(device_t dev, u8 cmd, u8 bytes, const u8 *buffer);
|
||||
int smbus_quick_read(struct device *dev);
|
||||
int smbus_quick_write(struct device *dev);
|
||||
int smbus_recv_byte(struct device *dev);
|
||||
int smbus_send_byte(struct device *dev, u8 byte);
|
||||
int smbus_read_byte(struct device *dev, u8 addr);
|
||||
int smbus_write_byte(struct device *dev, u8 addr, u8 val);
|
||||
int smbus_read_word(struct device *dev, u8 addr);
|
||||
int smbus_write_word(struct device *dev, u8 addr, u16 val);
|
||||
int smbus_process_call(struct device *dev, u8 cmd, u16 data);
|
||||
int smbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buffer);
|
||||
int smbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer);
|
||||
|
||||
|
||||
#endif /* DEVICE_SMBUS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue