diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/ati_radeon_fb.c | 8 | ||||
| -rw-r--r-- | drivers/bios_emulator/besys.c | 2 | ||||
| -rw-r--r-- | drivers/bios_emulator/biosemu.c | 6 | ||||
| -rw-r--r-- | drivers/tsec.c | 3 | ||||
| -rw-r--r-- | drivers/tsi108_i2c.c | 2 | ||||
| -rw-r--r-- | drivers/tsi108_pci.c | 3 | 
6 files changed, 16 insertions, 8 deletions
| diff --git a/drivers/ati_radeon_fb.c b/drivers/ati_radeon_fb.c index c174f37b3..9613d80cc 100644 --- a/drivers/ati_radeon_fb.c +++ b/drivers/ati_radeon_fb.c @@ -300,7 +300,7 @@ typedef struct {  	u32 val;  } reg_val; - +#if 0	/* unused ? -> scheduled for removal */  /* these common regs are cleared before mode setting so they do not   * interfere with anything   */ @@ -316,11 +316,10 @@ static reg_val common_regs[] = {  	{ CAP0_TRIG_CNTL, 0 },  	{ CAP1_TRIG_CNTL, 0 },  }; - +#endif /* 0 */  void radeon_setmode(void)  { -	int i;  	struct radeon_regs *mode = malloc(sizeof(struct radeon_regs));  	mode->crtc_gen_cntl = 0x03000200; @@ -351,6 +350,9 @@ void radeon_setmode(void)  	radeon_write_pll_regs(rinfo, mode);  } +#include "bios_emulator/include/biosemu.h" +extern int BootVideoCardBIOS(pci_dev_t pcidev, BE_VGAInfo ** pVGAInfo, int cleanUp); +  int radeon_probe(struct radeonfb_info *rinfo)  {  	pci_dev_t pdev; diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c index 8f1d8b29d..cb1b0c1b9 100644 --- a/drivers/bios_emulator/besys.c +++ b/drivers/bios_emulator/besys.c @@ -96,7 +96,7 @@ static u8 *BE_memaddr(u32 addr)  	else if (addr >= 0xFFFF5 && addr < 0xFFFFE) {  		/* Return a faked BIOS date string for non-x86 machines */  		DB(printf("BE_memaddr - Returning BIOS date\n");) -		return BE_biosDate + addr - 0xFFFF5; +		return (u8 *)(BE_biosDate + addr - 0xFFFF5);  	} else if (addr == 0xFFFFE) {  		/* Return system model identifier for non-x86 machines */  		DB(printf("BE_memaddr - Returning model\n");) diff --git a/drivers/bios_emulator/biosemu.c b/drivers/bios_emulator/biosemu.c index ccfc872f7..75ceb458c 100644 --- a/drivers/bios_emulator/biosemu.c +++ b/drivers/bios_emulator/biosemu.c @@ -96,7 +96,7 @@ int X86API BE_init(u32 debugFlags, int memSize, BE_VGAInfo * info, int shared)  		return 0;  	} -	M.mem_base = (unsigned long)malloc(memSize); +	M.mem_base = malloc(memSize);  	if (M.mem_base == NULL){  		printf("Biosemu:Out of memory!"); @@ -106,7 +106,7 @@ int X86API BE_init(u32 debugFlags, int memSize, BE_VGAInfo * info, int shared)  	_BE_env.emulateVGA = 0;  	_BE_env.busmem_base = (unsigned long)malloc(128 * 1024); -	if (_BE_env.busmem_base == NULL){ +	if ((void *)_BE_env.busmem_base == NULL){  		printf("Biosemu:Out of memory!");  		return 0;  	} @@ -230,7 +230,7 @@ Cleans up and exits the emulator.  void X86API BE_exit(void)  {  	free(M.mem_base); -	free(_BE_env.busmem_base); +	free((void *)_BE_env.busmem_base);  }  /**************************************************************************** diff --git a/drivers/tsec.c b/drivers/tsec.c index 7ba8f0cac..ca6284b72 100644 --- a/drivers/tsec.c +++ b/drivers/tsec.c @@ -117,10 +117,13 @@ struct phy_info *get_phy_info(struct eth_device *dev);  void phy_run_commands(struct tsec_private *priv, struct phy_cmd *cmd);  static void adjust_link(struct eth_device *dev);  static void relocate_cmds(void); +#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) \ +	&& !defined(BITBANGMII)  static int tsec_miiphy_write(char *devname, unsigned char addr,  			     unsigned char reg, unsigned short value);  static int tsec_miiphy_read(char *devname, unsigned char addr,  			    unsigned char reg, unsigned short *value); +#endif  #ifdef CONFIG_MCAST_TFTP  static int tsec_mcast_addr (struct eth_device *dev, u8 mcast_mac, u8 set);  #endif diff --git a/drivers/tsi108_i2c.c b/drivers/tsi108_i2c.c index 3a3b75c39..d6736b047 100644 --- a/drivers/tsi108_i2c.c +++ b/drivers/tsi108_i2c.c @@ -276,7 +276,7 @@ int i2c_probe (uchar chip)  	 * The Tsi108 HW doesn't support sending just the chip address  	 * and checkong for an <ACK> back.  	 */ -	return i2c_read (chip, 0, 1, (char *)&tmp, 1); +	return i2c_read (chip, 0, 1, (uchar *)&tmp, 1);  }  #endif diff --git a/drivers/tsi108_pci.c b/drivers/tsi108_pci.c index 9f606df51..d5f11e42f 100644 --- a/drivers/tsi108_pci.c +++ b/drivers/tsi108_pci.c @@ -33,6 +33,9 @@  #include <pci.h>  #include <asm/io.h>  #include <tsi108.h> +#ifdef CONFIG_OF_FLAT_TREE +#include <ft_build.h> +#endif  struct pci_controller local_hose; |