summaryrefslogtreecommitdiff
path: root/src/mainboard/asus
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2019-10-23 21:41:43 -0600
committerMartin Roth <martinroth@google.com>2019-10-27 21:08:49 +0000
commitad0f4853619b1c239b8ace7554958c6b4932c04f (patch)
tree30aab33490fa6d6dacc17a0f1bac99f0554c8ea5 /src/mainboard/asus
parent38ddbfb325866716c9c65a460e388f33d1a773dd (diff)
src/mainboard: change "unsigned" to "unsigned int"
Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: I46d131f76ec930d2ef0f74e6eaabae067df10754 Reviewed-on: https://review.coreboot.org/c/coreboot/+/36330 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/asus')
-rw-r--r--src/mainboard/asus/f2a85-m/mptable.c2
-rw-r--r--src/mainboard/asus/kfsn4-dre/get_bus_conf.c4
-rw-r--r--src/mainboard/asus/kfsn4-dre/irq_tables.c2
-rw-r--r--src/mainboard/asus/kfsn4-dre/mptable.c4
-rw-r--r--src/mainboard/asus/kfsn4-dre/romstage.c4
5 files changed, 8 insertions, 8 deletions
diff --git a/src/mainboard/asus/f2a85-m/mptable.c b/src/mainboard/asus/f2a85-m/mptable.c
index 0811fd2e1c..8bfe4d535a 100644
--- a/src/mainboard/asus/f2a85-m/mptable.c
+++ b/src/mainboard/asus/f2a85-m/mptable.c
@@ -39,7 +39,7 @@ u8 intr_data[0x54] = {
0x10,0x11,0x12,0x13
};
-static void smp_add_mpc_entry(struct mp_config_table *mc, unsigned length)
+static void smp_add_mpc_entry(struct mp_config_table *mc, unsigned int length)
{
mc->mpc_length += length;
mc->mpc_entry_count++;
diff --git a/src/mainboard/asus/kfsn4-dre/get_bus_conf.c b/src/mainboard/asus/kfsn4-dre/get_bus_conf.c
index dd7ebc962c..62f1af6ac2 100644
--- a/src/mainboard/asus/kfsn4-dre/get_bus_conf.c
+++ b/src/mainboard/asus/kfsn4-dre/get_bus_conf.c
@@ -32,11 +32,11 @@
*/
/* busnum is default */
unsigned char bus_ck804[6];
-unsigned apicid_ck804;
+unsigned int apicid_ck804;
void get_bus_conf(void)
{
- unsigned apicid_base, sbdn;
+ unsigned int apicid_base, sbdn;
struct device *dev;
int i;
diff --git a/src/mainboard/asus/kfsn4-dre/irq_tables.c b/src/mainboard/asus/kfsn4-dre/irq_tables.c
index c1bd3058ab..3fa72d732c 100644
--- a/src/mainboard/asus/kfsn4-dre/irq_tables.c
+++ b/src/mainboard/asus/kfsn4-dre/irq_tables.c
@@ -64,7 +64,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
{
struct irq_routing_table *pirq;
struct irq_info *pirq_info;
- unsigned slot_num, sbdn;
+ unsigned int slot_num, sbdn;
uint8_t *v, sum = 0;
int i;
diff --git a/src/mainboard/asus/kfsn4-dre/mptable.c b/src/mainboard/asus/kfsn4-dre/mptable.c
index 10a379844d..7ceb72062a 100644
--- a/src/mainboard/asus/kfsn4-dre/mptable.c
+++ b/src/mainboard/asus/kfsn4-dre/mptable.c
@@ -29,12 +29,12 @@
#include <cpu/amd/amdfam10_sysconf.h>
extern unsigned char bus_ck804[6];
-extern unsigned apicid_ck804;
+extern unsigned int apicid_ck804;
static void *smp_write_config_table(void *v)
{
struct mp_config_table *mc;
- unsigned sbdn;
+ unsigned int sbdn;
int bus_isa;
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
diff --git a/src/mainboard/asus/kfsn4-dre/romstage.c b/src/mainboard/asus/kfsn4-dre/romstage.c
index 22eb1157b9..7d710d73a2 100644
--- a/src/mainboard/asus/kfsn4-dre/romstage.c
+++ b/src/mainboard/asus/kfsn4-dre/romstage.c
@@ -65,7 +65,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
* @param[in] bus target bus number
* @return southbridge device number
*/
-unsigned int get_sbdn(unsigned bus)
+unsigned int get_sbdn(unsigned int bus)
{
pci_devfn_t dev;
@@ -114,7 +114,7 @@ static const unsigned int ctrl_conf_enable_msi_mapping[] = {
static void ck804_control(const unsigned int *values, u32 size,
uint8_t bus_unit_id)
{
- unsigned busn[4], io_base[4];
+ unsigned int busn[4], io_base[4];
int i, ck804_num = 0;
for (i = 0; i < 4; i++) {