1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Fixed staticizing. Some functions aren't static but depend on

the undocumented previously unLINTed option `APM_SLOWSTART'.
This commit is contained in:
Bruce Evans 1995-12-25 07:38:47 +00:00
parent 45f486a574
commit c6bbb6d152
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13013
6 changed files with 33 additions and 12 deletions
sys
conf
i386

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.226 1995/12/24 08:11:46 davidg Exp $
# $Id: LINT,v 1.227 1995/12/24 08:13:23 davidg Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -844,6 +844,7 @@ options POWERFAIL_NMI # make it beep instead of panicing
# More undocumented options for linting.
options APM_SLOWSTART=1
options COMPAT_LINUX
options DEBUG
options "EXT2FS"

View File

@ -13,7 +13,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.20 1995/12/08 11:13:09 julian Exp $
* $Id: apm.c,v 1.21 1995/12/22 13:08:27 phk Exp $
*/
#include "apm.h"
@ -361,8 +361,9 @@ apm_hook_establish(int apmh, struct apmhook *ah)
return apm_add_hook(&hook[apmh], ah);
}
#ifdef notused
/* disestablish an apm hook */
static void
void
apm_hook_disestablish(int apmh, struct apmhook *ah)
{
if (apmh < 0 || apmh >= NAPM_HOOK)
@ -370,6 +371,7 @@ apm_hook_disestablish(int apmh, struct apmhook *ah)
apm_del_hook(&hook[apmh], ah);
}
#endif /* notused */
static struct timeval suspend_time;
@ -476,8 +478,9 @@ apm_get_info(struct apm_softc *sc, apm_info_t aip)
}
#ifdef APM_SLOWSTART
/* inform APM BIOS that CPU is idle */
static void
void
apm_cpu_idle(void)
{
struct apm_softc *sc = master_softc; /* XXX */
@ -507,9 +510,11 @@ apm_cpu_idle(void)
__asm("sti ; hlt"); /* wait for interrupt */
}
}
#endif /* APM_SLOWSTART */
#if APM_SLOWSTART > 0
/* inform APM BIOS that CPU is busy */
static void
void
apm_cpu_busy(void)
{
struct apm_softc *sc = master_softc; /* XXX */
@ -518,6 +523,7 @@ apm_cpu_busy(void)
__asm("movw $0x5306, %ax; lcall _apm_addr");
}
}
#endif /* APM_SLOWSTART > 0 */
/*

View File

@ -13,7 +13,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.20 1995/12/08 11:13:09 julian Exp $
* $Id: apm.c,v 1.21 1995/12/22 13:08:27 phk Exp $
*/
#include "apm.h"
@ -361,8 +361,9 @@ apm_hook_establish(int apmh, struct apmhook *ah)
return apm_add_hook(&hook[apmh], ah);
}
#ifdef notused
/* disestablish an apm hook */
static void
void
apm_hook_disestablish(int apmh, struct apmhook *ah)
{
if (apmh < 0 || apmh >= NAPM_HOOK)
@ -370,6 +371,7 @@ apm_hook_disestablish(int apmh, struct apmhook *ah)
apm_del_hook(&hook[apmh], ah);
}
#endif /* notused */
static struct timeval suspend_time;
@ -476,8 +478,9 @@ apm_get_info(struct apm_softc *sc, apm_info_t aip)
}
#ifdef APM_SLOWSTART
/* inform APM BIOS that CPU is idle */
static void
void
apm_cpu_idle(void)
{
struct apm_softc *sc = master_softc; /* XXX */
@ -507,9 +510,11 @@ apm_cpu_idle(void)
__asm("sti ; hlt"); /* wait for interrupt */
}
}
#endif /* APM_SLOWSTART */
#if APM_SLOWSTART > 0
/* inform APM BIOS that CPU is busy */
static void
void
apm_cpu_busy(void)
{
struct apm_softc *sc = master_softc; /* XXX */
@ -518,6 +523,7 @@ apm_cpu_busy(void)
__asm("movw $0x5306, %ax; lcall _apm_addr");
}
}
#endif /* APM_SLOWSTART > 0 */
/*

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.226 1995/12/24 08:11:46 davidg Exp $
# $Id: LINT,v 1.227 1995/12/24 08:13:23 davidg Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -844,6 +844,7 @@ options POWERFAIL_NMI # make it beep instead of panicing
# More undocumented options for linting.
options APM_SLOWSTART=1
options COMPAT_LINUX
options DEBUG
options "EXT2FS"

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.226 1995/12/24 08:11:46 davidg Exp $
# $Id: LINT,v 1.227 1995/12/24 08:13:23 davidg Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -844,6 +844,7 @@ options POWERFAIL_NMI # make it beep instead of panicing
# More undocumented options for linting.
options APM_SLOWSTART=1
options COMPAT_LINUX
options DEBUG
options "EXT2FS"

View File

@ -12,7 +12,7 @@
*
* Aug, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm_bios.h,v 1.5 1995/05/30 08:00:23 rgrimes Exp $
* $Id: apm_bios.h,v 1.6 1995/11/21 12:52:56 bde Exp $
*/
#ifndef _MACHINE_APM_BIOS_H_
@ -135,9 +135,15 @@ struct apmhook {
void apm_suspend(void);
struct apmhook *apm_hook_establish (int apmh, struct apmhook *);
#ifdef notused
void apm_hook_disestablish (int apmh, struct apmhook *);
#endif
#ifdef APM_SLOWSTART
void apm_cpu_idle(void);
#endif
#if APM_SLOWSTART > 0
void apm_cpu_busy(void);
#endif
#endif /* !ASSEMBLER && !INITIALIZER */