mirror of https://github.com/ipxe/ipxe.git
Merge branch 'symcheck2'
commit
e3484e26eb
|
@ -298,7 +298,7 @@ static int eltorito_load_disk ( struct image *image,
|
||||||
* @v image El Torito file
|
* @v image El Torito file
|
||||||
* @ret rc Return status code
|
* @ret rc Return status code
|
||||||
*/
|
*/
|
||||||
int eltorito_load ( struct image *image ) {
|
static int eltorito_load ( struct image *image ) {
|
||||||
struct eltorito_boot_entry boot_entry;
|
struct eltorito_boot_entry boot_entry;
|
||||||
unsigned long bootcat_offset;
|
unsigned long bootcat_offset;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
|
@ -360,7 +360,7 @@ static int multiboot_load_elf ( struct image *image ) {
|
||||||
* @v image Multiboot file
|
* @v image Multiboot file
|
||||||
* @ret rc Return status code
|
* @ret rc Return status code
|
||||||
*/
|
*/
|
||||||
int multiboot_load ( struct image *image ) {
|
static int multiboot_load ( struct image *image ) {
|
||||||
struct multiboot_header_info hdr;
|
struct multiboot_header_info hdr;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,7 @@ static int nbi_process_segments ( struct image *image,
|
||||||
* @v image NBI image
|
* @v image NBI image
|
||||||
* @ret rc Return status code
|
* @ret rc Return status code
|
||||||
*/
|
*/
|
||||||
int nbi_load ( struct image *image ) {
|
static int nbi_load ( struct image *image ) {
|
||||||
struct imgheader imgheader;
|
struct imgheader imgheader;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
|
|
@ -238,6 +238,9 @@ void AES_set_key(AES_CTX *ctx, const uint8_t *key,
|
||||||
memcpy(ctx->iv, iv, 16);
|
memcpy(ctx->iv, iv, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/** currently unused function **/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change a key for decryption.
|
* Change a key for decryption.
|
||||||
*/
|
*/
|
||||||
|
@ -256,6 +259,7 @@ void AES_convert_key(AES_CTX *ctx)
|
||||||
*k++ =w;
|
*k++ =w;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encrypt a byte sequence (with a block size 16) using the AES cipher.
|
* Encrypt a byte sequence (with a block size 16) using the AES cipher.
|
||||||
|
|
|
@ -54,7 +54,9 @@ void AES_set_key(AES_CTX *ctx, const uint8_t *key,
|
||||||
void AES_cbc_encrypt(AES_CTX *ctx, const uint8_t *msg,
|
void AES_cbc_encrypt(AES_CTX *ctx, const uint8_t *msg,
|
||||||
uint8_t *out, int length);
|
uint8_t *out, int length);
|
||||||
void AES_cbc_decrypt(AES_CTX *ks, const uint8_t *in, uint8_t *out, int length);
|
void AES_cbc_decrypt(AES_CTX *ks, const uint8_t *in, uint8_t *out, int length);
|
||||||
|
#if 0 /** currently unused function **/
|
||||||
void AES_convert_key(AES_CTX *ctx);
|
void AES_convert_key(AES_CTX *ctx);
|
||||||
|
#endif
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* RC4 declarations
|
* RC4 declarations
|
||||||
|
|
|
@ -54,7 +54,7 @@ static u32 __md5step f4(u32 b, u32 c, u32 d)
|
||||||
return ( c ^ ( b | ~d ) );
|
return ( c ^ ( b | ~d ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
struct md5_step md5_steps[4] = {
|
static struct md5_step md5_steps[4] = {
|
||||||
{
|
{
|
||||||
.f = f1,
|
.f = f1,
|
||||||
.coefficient = 1,
|
.coefficient = 1,
|
||||||
|
|
|
@ -43,7 +43,7 @@ static struct bss {
|
||||||
struct statistics_block stats_blk;
|
struct statistics_block stats_blk;
|
||||||
} bnx2_bss;
|
} bnx2_bss;
|
||||||
|
|
||||||
struct bnx2 bnx2;
|
static struct bnx2 bnx2;
|
||||||
|
|
||||||
static struct flash_spec flash_table[] =
|
static struct flash_spec flash_table[] =
|
||||||
{
|
{
|
||||||
|
|
|
@ -364,7 +364,7 @@ struct ring_desc {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Private Storage for the NIC */
|
/* Private Storage for the NIC */
|
||||||
struct ns83820_private {
|
static struct ns83820_private {
|
||||||
u8 *base;
|
u8 *base;
|
||||||
int up;
|
int up;
|
||||||
long idle;
|
long idle;
|
||||||
|
|
|
@ -67,7 +67,7 @@ static struct nic_operations pcnet32_operations;
|
||||||
|
|
||||||
/* End Etherboot Specific */
|
/* End Etherboot Specific */
|
||||||
|
|
||||||
int cards_found /* __initdata */ ;
|
static int cards_found = 0 /* __initdata */ ;
|
||||||
|
|
||||||
#ifdef REMOVE
|
#ifdef REMOVE
|
||||||
/* FIXME: Remove these they are probably pointless */
|
/* FIXME: Remove these they are probably pointless */
|
||||||
|
|
|
@ -400,7 +400,7 @@ static void rtl8169_hw_PHY_config(struct nic *nic __unused);
|
||||||
// 20-16 5-bit GMII/MII register address
|
// 20-16 5-bit GMII/MII register address
|
||||||
// 15-0 16-bit GMII/MII register data
|
// 15-0 16-bit GMII/MII register data
|
||||||
//=================================================================
|
//=================================================================
|
||||||
void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
|
static void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -418,7 +418,7 @@ void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================
|
//=================================================================
|
||||||
int RTL8169_READ_GMII_REG(unsigned long ioaddr, int RegAddr)
|
static int RTL8169_READ_GMII_REG(unsigned long ioaddr, int RegAddr)
|
||||||
{
|
{
|
||||||
int i, value = -1;
|
int i, value = -1;
|
||||||
|
|
||||||
|
|
|
@ -1204,7 +1204,7 @@ struct velocity_info_tbl {
|
||||||
u32 flags;
|
u32 flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct velocity_info_tbl *info;
|
static struct velocity_info_tbl *info;
|
||||||
|
|
||||||
#define mac_hw_mibs_init(regs) {\
|
#define mac_hw_mibs_init(regs) {\
|
||||||
BYTE_REG_BITS_ON(MIBCR_MIBFRZ,&((regs)->MIBCR));\
|
BYTE_REG_BITS_ON(MIBCR_MIBFRZ,&((regs)->MIBCR));\
|
||||||
|
@ -1768,7 +1768,7 @@ struct velocity_opt {
|
||||||
#define TX_DESC_MAX 256
|
#define TX_DESC_MAX 256
|
||||||
#define TX_DESC_DEF TX_DESC_MIN
|
#define TX_DESC_DEF TX_DESC_MIN
|
||||||
|
|
||||||
struct velocity_info {
|
static struct velocity_info {
|
||||||
// struct list_head list;
|
// struct list_head list;
|
||||||
|
|
||||||
struct pci_device *pdev;
|
struct pci_device *pdev;
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
* @v nargs Argument count
|
* @v nargs Argument count
|
||||||
* @v args Argument list
|
* @v args Argument list
|
||||||
*/
|
*/
|
||||||
void imgfill_cmdline ( struct image *image, unsigned int nargs, char **args ) {
|
static void imgfill_cmdline ( struct image *image, unsigned int nargs,
|
||||||
|
char **args ) {
|
||||||
size_t used = 0;
|
size_t used = 0;
|
||||||
|
|
||||||
image->cmdline[0] = '\0';
|
image->cmdline[0] = '\0';
|
||||||
|
|
|
@ -19,18 +19,7 @@ int m_delay; /*
|
||||||
bool m_echo;
|
bool m_echo;
|
||||||
bool m_cbreak;
|
bool m_cbreak;
|
||||||
|
|
||||||
/**
|
static int _wgetc ( WINDOW *win ) {
|
||||||
* Check KEY_ code supported status
|
|
||||||
*
|
|
||||||
* @v kc keycode value to check
|
|
||||||
* @ret TRUE KEY_* supported
|
|
||||||
* @ret FALSE KEY_* unsupported
|
|
||||||
*/
|
|
||||||
int has_key ( int kc __unused ) {
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
int _wgetc ( WINDOW *win ) {
|
|
||||||
int timer, c;
|
int timer, c;
|
||||||
|
|
||||||
if ( win == NULL )
|
if ( win == NULL )
|
||||||
|
|
|
@ -50,7 +50,7 @@ struct _softlabelkeys {
|
||||||
short saved_pair;
|
short saved_pair;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _softlabelkeys *slks;
|
static struct _softlabelkeys *slks;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
I either need to break the primitives here, or write a collection of
|
I either need to break the primitives here, or write a collection of
|
||||||
|
|
|
@ -566,6 +566,10 @@ static inline bool has_colors ( void ) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int has_key ( int kc __unused ) {
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
static inline int hline ( chtype ch, int n ) {
|
static inline int hline ( chtype ch, int n ) {
|
||||||
return whline ( stdscr, ch, n );
|
return whline ( stdscr, ch, n );
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,8 +65,9 @@ ndp_find_entry ( struct in6_addr *in6 ) {
|
||||||
* @v ll_addr Link-layer address
|
* @v ll_addr Link-layer address
|
||||||
* @v state State of the entry - one of the NDP_STATE_XXX values
|
* @v state State of the entry - one of the NDP_STATE_XXX values
|
||||||
*/
|
*/
|
||||||
void add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
|
static void
|
||||||
void *ll_addr, int state ) {
|
add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
|
||||||
|
void *ll_addr, int state ) {
|
||||||
struct ndp_entry *ndp;
|
struct ndp_entry *ndp;
|
||||||
ndp = &ndp_table[next_new_ndp_entry++ % NUM_NDP_ENTRIES];
|
ndp = &ndp_table[next_new_ndp_entry++ % NUM_NDP_ENTRIES];
|
||||||
|
|
||||||
|
|
|
@ -465,7 +465,7 @@ static struct xfer_interface_operations http_xfer_operations = {
|
||||||
* @v uri Uniform Resource Identifier
|
* @v uri Uniform Resource Identifier
|
||||||
* @ret rc Return status code
|
* @ret rc Return status code
|
||||||
*/
|
*/
|
||||||
int http_open ( struct xfer_interface *xfer, struct uri *uri ) {
|
static int http_open ( struct xfer_interface *xfer, struct uri *uri ) {
|
||||||
struct http_request *http;
|
struct http_request *http;
|
||||||
struct sockaddr_tcpip server;
|
struct sockaddr_tcpip server;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
|
@ -103,7 +103,7 @@ static int boot_root_path ( const char *root_path ) {
|
||||||
* @v netdev Network device
|
* @v netdev Network device
|
||||||
* @ret rc Return status code
|
* @ret rc Return status code
|
||||||
*/
|
*/
|
||||||
int netboot ( struct net_device *netdev ) {
|
static int netboot ( struct net_device *netdev ) {
|
||||||
char buf[256];
|
char buf[256];
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue