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>
This commit is contained in:
Martin Roth
2019-10-23 21:41:43 -06:00
committed by Martin Roth
parent 38ddbfb325
commit ad0f485361
58 changed files with 97 additions and 97 deletions

View File

@@ -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++;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);

View File

@@ -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++) {