-.\" $OpenBSD: apm.4,v 1.9 2022/03/31 17:27:21 naddy Exp $
+.\" $OpenBSD: apm.4,v 1.10 2023/01/30 14:43:29 jcs Exp $
.\"
.\" Copyright (c) 1998 Marco S. Hyman
.\"
.\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
.\" FOR A PARTICULAR PURPOSE.
.\"
-.Dd $Mdocdate: March 31 2022 $
+.Dd $Mdocdate: January 30 2023 $
.Dt APM 4 amd64
.Os
.Sh NAME
.Va minutes_left
value contains the estimated number of minutes of battery life
remaining.
-.It Dv APM_IOC_NEXTEVENT
-.Pq Li "struct apm_event_info"
-The APM driver stores up to
-.Dv APM_NEVENTS
-events.
-This was defined as 16 at the time this documentation was written.
-If the event list is full when a new event is detected, the new event is lost.
-.Dv APM_IOC_NEXTEVENT
-ioctl returns the next event on the list or
-.Er EAGAIN
-if the event list is empty.
-The format of the returned event is:
-.Bd -literal -offset indent
-struct apm_event_info {
- u_int type;
- u_int index;
- u_int spare[8];
-};
-.Ed
-where
-.Va index
-is a sequential count of events that can be used to check if any
-events were lost and
-.Va type
-is one of:
-.Bl -tag -width Ds -offset indent -compact
-.It Dv APM_STANDBY_REQ
-.It Dv APM_SUSPEND_REQ
-.It Dv APM_NORMAL_RESUME
-.It Dv APM_CRIT_RESUME
-.It Dv APM_BATTERY_LOW
-.It Dv APM_POWER_CHANGE
-.It Dv APM_UPDATE_TIME
-.It Dv APM_CRIT_SUSPEND_REQ
-.It Dv APM_USER_STANDBY_REQ
-.It Dv APM_USER_SUSPEND_REQ
-.It Dv APM_SYS_STANDBY_RESUME
-.El
.It Dv APM_IOC_DEV_CTL
.Pq Li "struct apm_ctl"
Allows an application to directly set the
-.\" $OpenBSD: apm.4,v 1.5 2022/03/31 17:27:21 naddy Exp $
+.\" $OpenBSD: apm.4,v 1.6 2023/01/30 14:43:29 jcs Exp $
.\"
.\" Copyright (c) 1998 Marco S. Hyman
.\"
.\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
.\" FOR A PARTICULAR PURPOSE.
.\"
-.Dd $Mdocdate: March 31 2022 $
+.Dd $Mdocdate: January 30 2023 $
.Dt APM 4 arm64
.Os
.Sh NAME
.Va minutes_left
value contains the estimated number of minutes of battery life
remaining.
-.It Dv APM_IOC_NEXTEVENT
-.Pq Li "struct apm_event_info"
-The APM driver stores up to
-.Dv APM_NEVENTS
-events.
-This was defined as 16 at the time this documentation was written.
-If the event list is full when a new event is detected, the new event is lost.
-.Dv APM_IOC_NEXTEVENT
-ioctl returns the next event on the list or
-.Er EAGAIN
-if the event list is empty.
-The format of the returned event is:
-.Bd -literal -offset indent
-struct apm_event_info {
- u_int type;
- u_int index;
- u_int spare[8];
-};
-.Ed
-where
-.Va index
-is a sequential count of events that can be used to check if any
-events were lost and
-.Va type
-is one of:
-.Bl -tag -width Ds -offset indent -compact
-.It Dv APM_STANDBY_REQ
-.It Dv APM_SUSPEND_REQ
-.It Dv APM_NORMAL_RESUME
-.It Dv APM_CRIT_RESUME
-.It Dv APM_BATTERY_LOW
-.It Dv APM_POWER_CHANGE
-.It Dv APM_UPDATE_TIME
-.It Dv APM_CRIT_SUSPEND_REQ
-.It Dv APM_USER_STANDBY_REQ
-.It Dv APM_USER_SUSPEND_REQ
-.It Dv APM_SYS_STANDBY_RESUME
-.El
.It Dv APM_IOC_DEV_CTL
.Em NOT YET SUPPORTED on arm64 .
.Pp
-.\" $OpenBSD: apm.4,v 1.35 2022/03/31 17:27:21 naddy Exp $
+.\" $OpenBSD: apm.4,v 1.36 2023/01/30 14:43:29 jcs Exp $
.\"
.\" Copyright (c) 1998 Marco S. Hyman
.\"
.\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
.\" FOR A PARTICULAR PURPOSE.
.\"
-.Dd $Mdocdate: March 31 2022 $
+.Dd $Mdocdate: January 30 2023 $
.Dt APM 4 i386
.Os
.Sh NAME
.Va minutes_left
value contains the estimated number of minutes of battery life
remaining.
-.It Dv APM_IOC_NEXTEVENT
-.Pq Li "struct apm_event_info"
-The APM driver stores up to
-.Dv APM_NEVENTS
-events.
-This was defined as 16 at the time this documentation was written.
-If the event list is full when a new event is detected, the new event is lost.
-.Dv APM_IOC_NEXTEVENT
-ioctl returns the next event on the list or
-.Er EAGAIN
-if the event list is empty.
-The format of the returned event is:
-.Bd -literal -offset indent
-struct apm_event_info {
- u_int type;
- u_int index;
- u_int spare[8];
-};
-.Ed
-where
-.Va index
-is a sequential count of events that can be used to check if any
-events were lost and
-.Va type
-is one of:
-.Bl -tag -width Ds -offset indent -compact
-.It Dv APM_STANDBY_REQ
-.It Dv APM_SUSPEND_REQ
-.It Dv APM_NORMAL_RESUME
-.It Dv APM_CRIT_RESUME
-.It Dv APM_BATTERY_LOW
-.It Dv APM_POWER_CHANGE
-.It Dv APM_UPDATE_TIME
-.It Dv APM_CRIT_SUSPEND_REQ
-.It Dv APM_USER_STANDBY_REQ
-.It Dv APM_USER_SUSPEND_REQ
-.It Dv APM_SYS_STANDBY_RESUME
-.El
.It Dv APM_IOC_DEV_CTL
.Pq Li "struct apm_ctl"
Allows an application to directly set the
-.\" $OpenBSD: apm.4,v 1.7 2022/03/31 17:27:22 naddy Exp $
+.\" $OpenBSD: apm.4,v 1.8 2023/01/30 14:43:29 jcs Exp $
.\"
.\" Copyright (c) 1999 Jason L. Wright (jason@thought.net)
.\" All rights reserved.
.\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
.\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
.\" FOR A PARTICULAR PURPOSE.
-.Dd $Mdocdate: March 31 2022 $
+.Dd $Mdocdate: January 30 2023 $
.Dt APM 4 loongson
.Os
.Sh NAME
The
.Va minutes_left
value contains the estimated number of minutes of battery life remaining.
-.\" .It Dv APM_IOC_NEXTEVENT
-.\" .Em NOT YET SUPPORTED on loongson
-.\" .Pq Li "struct apm_event_info"
-.\" The
-.\" .Tn APM
-.\" driver stores up to
-.\" .Dv APM_NEVENTS
-.\" events.
-.\" This was defined as 16 at the time this documentation was written.
-.\" If the event list is full when a new event is detected, the new event is lost.
-.\" .Dv APM_IOC_NEXTEVENT
-.\" ioctl returns the next event on the list or
-.\" .Er EAGAIN
-.\" if the event list is empty.
-.\" The format of the returned event is:
-.\" .Bd -literal -offset indent
-.\" struct apm_event_info {
-.\" u_int type;
-.\" u_int index;
-.\" u_int spare[8];
-.\" };
-.\" .Ed
-.\" where
-.\" .Va index
-.\" is a sequential count of events that can be used to check if any
-.\" events were lost and
-.\" .Va type
-.\" is one of:
-.\" .Pp
-.\" .Bl -tag -width Ds -offset indent -compact
-.\" .It Dv APM_STANDBY_REQ
-.\" .It Dv APM_SUSPEND_REQ
-.\" .It Dv APM_NORMAL_RESUME
-.\" .It Dv APM_CRIT_RESUME
-.\" .It Dv APM_BATTERY_LOW
-.\" .It Dv APM_POWER_CHANGE
-.\" .It Dv APM_UPDATE_TIME
-.\" .It Dv APM_CRIT_SUSPEND_REQ
-.\" .It Dv APM_USER_STANDBY_REQ
-.\" .It Dv APM_USER_SUSPEND_REQ
-.\" .It Dv APM_SYS_STANDBY_RESUME
-.\" .El
.\" .It Dv APM_IOC_DEV_CTL
.\" .Em NOT YET SUPPORTED on loongson
.\" .Pq Li "struct apm_ctl"
-.\" $OpenBSD: apm.4,v 1.16 2022/03/31 17:27:22 naddy Exp $
+.\" $OpenBSD: apm.4,v 1.17 2023/01/30 14:43:29 jcs Exp $
.\"
.\" Copyright (c) 1998 Marco S. Hyman
.\"
.\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
.\" FOR A PARTICULAR PURPOSE.
.\"
-.Dd $Mdocdate: March 31 2022 $
+.Dd $Mdocdate: January 30 2023 $
.Dt APM 4 macppc
.Os
.Sh NAME
Otherwise, the
.Va minutes_left
value contains the estimated number of minutes of battery life remaining.
-.It Dv APM_IOC_NEXTEVENT
-.Em NOT YET SUPPORTED on macppc
-.Pq Li "struct apm_event_info"
-The APM driver stores up to
-.Dv APM_NEVENTS
-events.
-This was defined as 16 at the time this documentation was written.
-If the event list is full when a new event is detected, the new event is lost.
-.Dv APM_IOC_NEXTEVENT
-ioctl returns the next event on the list or
-.Er EAGAIN
-if the event list is empty.
-The format of the returned event is:
-.Bd -literal -offset indent
-struct apm_event_info {
- u_int type;
- u_int index;
- u_int spare[8];
-};
-.Ed
-where
-.Va index
-is a sequential count of events that can be used to check if any
-events were lost and
-.Va type
-is one of:
-.Pp
-.Bl -tag -width Ds -offset indent -compact
-.It Dv APM_STANDBY_REQ
-.It Dv APM_SUSPEND_REQ
-.It Dv APM_NORMAL_RESUME
-.It Dv APM_CRIT_RESUME
-.It Dv APM_BATTERY_LOW
-.It Dv APM_POWER_CHANGE
-.It Dv APM_UPDATE_TIME
-.It Dv APM_CRIT_SUSPEND_REQ
-.It Dv APM_USER_STANDBY_REQ
-.It Dv APM_USER_SUSPEND_REQ
-.It Dv APM_SYS_STANDBY_RESUME
-.El
.It Dv APM_IOC_DEV_CTL
.Em NOT YET SUPPORTED on macppc .
.Pp