mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Enable GCC warning flag -Wnested-externs, fix warnings
Move nested extern declarations into header files, or use the already existing declarations. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@861 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "drivers/drivers.h"
|
||||
#include "timer.h"
|
||||
#include "asm/io.h"
|
||||
|
||||
@@ -86,7 +87,6 @@ unsigned long get_timer_freq(void)
|
||||
|
||||
void udelay(unsigned int usecs)
|
||||
{
|
||||
extern void _wait_ticks(unsigned long);
|
||||
unsigned long ticksperusec = get_timer_freq() / 1000000;
|
||||
_wait_ticks(ticksperusec * usecs);
|
||||
}
|
||||
|
||||
@@ -48,13 +48,15 @@
|
||||
#define PPCB_SPKR 0x02 /* Bit 1 */
|
||||
#define PPCB_T2GATE 0x01 /* Bit 0 */
|
||||
|
||||
extern void setup_timers(void);
|
||||
extern void ndelay(unsigned int nsecs);
|
||||
extern void udelay(unsigned int usecs);
|
||||
extern void mdelay(unsigned int msecs);
|
||||
extern unsigned long currticks(void);
|
||||
extern unsigned long get_timer_freq(void);
|
||||
|
||||
/* arch/ppc/timebase.S */
|
||||
void _wait_ticks(unsigned long nticks);
|
||||
|
||||
#define TICKS_PER_SEC 1000
|
||||
|
||||
#endif /* TIMER_H */
|
||||
|
||||
Reference in New Issue
Block a user