mb: Use 'unsigned int' to bare use of 'unsigned'
Change-Id: I3a8e077656df02912b4e67c3947bd5af054a18bf Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28701 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
ae7bd1eb23
commit
dd35e2c8a9
|
@ -54,7 +54,7 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
#include "cpu/amd/quadcore/quadcore.c"
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#include "cpu/amd/quadcore/quadcore.c"
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
static void memreset_setup(void)
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x2e, IT8718F_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, LPC47M10X2_SP1)
|
||||
|
||||
int spd_read_byte(unsigned device, unsigned address)
|
||||
int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
|
|
@ -54,10 +54,10 @@
|
|||
#define SERIAL_1_DEV PNP_DEV(0x2e, W83667HG_A_SP2)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
inline int spd_read_byte(unsigned device, unsigned address)
|
||||
inline int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return do_smbus_read_byte(SMBUS_AUX_IO_BASE, device, address);
|
||||
}
|
||||
|
|
|
@ -59,10 +59,10 @@
|
|||
#define GPIO3_DEV PNP_DEV(0x2e, W83627THG_GPIO3)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
int spd_read_byte(unsigned device, unsigned address)
|
||||
int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
|
|
@ -54,10 +54,10 @@
|
|||
#define SERIAL_1_DEV PNP_DEV(0x2e, W83667HG_A_SP2)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
int spd_read_byte(unsigned device, unsigned address)
|
||||
int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return do_smbus_read_byte(SMBUS_AUX_IO_BASE, device, address);
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
#define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x4e, IT8721F_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
#define CLK_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
#define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
#define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#define RTC_DEV PNP_DEV(0x4e, PC87417_RTC)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
inline void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
|
@ -71,7 +71,7 @@ inline void activate_spd_rom(const struct mem_controller *ctrl)
|
|||
outb((val & ~3) | ctrl->spd_switch_addr, 0xcd7);
|
||||
}
|
||||
|
||||
inline int spd_read_byte(unsigned device, unsigned address)
|
||||
inline int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x2e, F71859_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
#endif
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -49,12 +49,12 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
||||
inline int spd_read_byte(unsigned device, unsigned address)
|
||||
inline int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
|
|
@ -53,12 +53,12 @@
|
|||
#define SUPERIO_DEV PNP_DEV(0x2e, 0)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
||||
inline int spd_read_byte(unsigned device, unsigned address)
|
||||
inline int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#define SMBUS_SWITCH2 0x72
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
inline void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
|
@ -64,7 +64,7 @@ inline void activate_spd_rom(const struct mem_controller *ctrl)
|
|||
smbus_send_byte(SMBUS_SWITCH2, (5 >> 4) & 0x0f);
|
||||
}
|
||||
|
||||
inline int spd_read_byte(unsigned device, unsigned address)
|
||||
inline int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
#include "cpu/amd/quadcore/quadcore.c"
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
|
|
|
@ -49,12 +49,12 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl);
|
||||
int spd_read_byte(unsigned device, unsigned address);
|
||||
int spd_read_byte(unsigned int device, unsigned int address);
|
||||
extern struct sys_info sysinfo_car;
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
||||
inline int spd_read_byte(unsigned device, unsigned address)
|
||||
inline int spd_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue