src/southbridge: change "unsigned" to "unsigned int"
Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: Iee2056a50a1201626fa29194afdbfc1f11094420 Reviewed-on: https://review.coreboot.org/c/coreboot/+/36333 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
5331a7cff9
commit
ff744bf0ee
@@ -51,22 +51,22 @@ void enable_smbus(void)
|
||||
printk(BIOS_DEBUG, "SMBus controller enabled.\n");
|
||||
}
|
||||
|
||||
int smbus_read_byte(unsigned device, unsigned address)
|
||||
int smbus_read_byte(unsigned int device, unsigned int address)
|
||||
{
|
||||
return do_smbus_read_byte(SMBUS_IO_BASE, device, address);
|
||||
}
|
||||
|
||||
int smbus_write_byte(unsigned device, unsigned address, u8 data)
|
||||
int smbus_write_byte(unsigned int device, unsigned int address, u8 data)
|
||||
{
|
||||
return do_smbus_write_byte(SMBUS_IO_BASE, device, address, data);
|
||||
}
|
||||
|
||||
int smbus_block_read(unsigned device, unsigned cmd, u8 bytes, u8 *buf)
|
||||
int smbus_block_read(unsigned int device, unsigned int cmd, u8 bytes, u8 *buf)
|
||||
{
|
||||
return do_smbus_block_read(SMBUS_IO_BASE, device, cmd, bytes, buf);
|
||||
}
|
||||
|
||||
int smbus_block_write(unsigned device, unsigned cmd, u8 bytes, const u8 *buf)
|
||||
int smbus_block_write(unsigned int device, unsigned int cmd, u8 bytes, const u8 *buf)
|
||||
{
|
||||
return do_smbus_block_write(SMBUS_IO_BASE, device, cmd, bytes, buf);
|
||||
}
|
||||
|
@@ -155,7 +155,7 @@ static inline u32 read_cb(void)
|
||||
static int mei_wait_for_me_ready(void)
|
||||
{
|
||||
struct mei_csr me;
|
||||
unsigned try = ME_RETRY;
|
||||
unsigned int try = ME_RETRY;
|
||||
|
||||
while (try--) {
|
||||
read_me_csr(&me);
|
||||
@@ -196,7 +196,7 @@ static int mei_send_msg(struct mei_header *mei, struct mkhi_header *mkhi,
|
||||
void *req_data)
|
||||
{
|
||||
struct mei_csr host;
|
||||
unsigned ndata, n;
|
||||
unsigned int ndata, n;
|
||||
u32 *data;
|
||||
|
||||
/* Number of dwords to write, ignoring MKHI */
|
||||
@@ -261,8 +261,8 @@ static int mei_recv_msg(struct mei_header *mei, struct mkhi_header *mkhi,
|
||||
struct mei_header mei_rsp;
|
||||
struct mkhi_header mkhi_rsp;
|
||||
struct mei_csr me, host;
|
||||
unsigned ndata, n;
|
||||
unsigned expected;
|
||||
unsigned int ndata, n;
|
||||
unsigned int expected;
|
||||
u32 *data;
|
||||
|
||||
/* Total number of dwords to read from circular buffer */
|
||||
|
@@ -56,10 +56,10 @@ void enable_smbus(void);
|
||||
void enable_usb_bar(void);
|
||||
|
||||
#if ENV_ROMSTAGE
|
||||
int smbus_read_byte(unsigned device, unsigned address);
|
||||
int smbus_write_byte(unsigned device, unsigned address, u8 data);
|
||||
int smbus_block_read(unsigned device, unsigned cmd, u8 bytes, u8 *buf);
|
||||
int smbus_block_write(unsigned device, unsigned cmd, u8 bytes, const u8 *buf);
|
||||
int smbus_read_byte(unsigned int device, unsigned int address);
|
||||
int smbus_write_byte(unsigned int device, unsigned int address, u8 data);
|
||||
int smbus_block_read(unsigned int device, unsigned int cmd, u8 bytes, u8 *buf);
|
||||
int smbus_block_write(unsigned int device, unsigned int cmd, u8 bytes, const u8 *buf);
|
||||
#endif
|
||||
|
||||
void early_pch_init(void);
|
||||
|
@@ -68,8 +68,8 @@ static void usb_ehci_init(struct device *dev)
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
}
|
||||
|
||||
static void usb_ehci_set_subsystem(struct device *dev, unsigned vendor,
|
||||
unsigned device)
|
||||
static void usb_ehci_set_subsystem(struct device *dev, unsigned int vendor,
|
||||
unsigned int device)
|
||||
{
|
||||
u8 access_cntl;
|
||||
|
||||
|
Reference in New Issue
Block a user