abstraction library source file (CLKPWR driver).
More...
Detailed Description
abstraction library source file (CLKPWR driver).
These function is executed in user space.
- Attention:
- This program is provided as is. You can redistribute it and/or modify it. Fujitsu Semiconductor Limited accepts no responsibility or liability for any errors or omissions.
Copyright (C) 2008-2010 Fujitsu Semiconductor Limited, All Rights Reserved.
Function Documentation
open method. This function is called with the systemcall "open".
- Parameters:
-
id | The device identifier. |
flags | This parameter indicate a open mode (read only/write only/read-write).
This implementation supports only read-write mode. |
argptr | argument pointer (NULL) |
- Return values:
-
>=0 | process OK, new file descriptor is returned. |
<0 | process fails, its value is set to errno. |
release method. This function is called with the systemcall "close".
- Parameters:
-
id | The identifier for this descriptor. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
ioctl method. This function is called with the systemcall "ioctl".
- Parameters:
-
id | The identifier for this descriptor. |
cmd | The ioctl command. |
pArg | The pointer to the argument of the ioctl command. |
- Return values:
-
0 | process OK |
<0 | process fails, its value is set to errno. |
ioctl command(
cmd) type:
- FAPEX_IOCCOM_CLKPWR_START
wakeup CLKPWR.
Set the mask(uint32_t) which contains the power down modules to pArg.
The value of mask is the bitwise-inclusive OR of values from the following list.
ex. The following are in the above bit set.
- FAPEX_IOCCOM_CLKPWR_STOP
standby CLKPWR.
Set the mask(uint32_t) which contains the power down modules to pArg.
The value of mask is the bitwise-inclusive OR of values from the following list.
ex. The following are in the above bit set.
- FAPEX_IOCCOM_RESET
reset CLKPWR.
Set the mask(uint32_t) which contains the power down modules to pArg.
The value of mask is the bitwise-inclusive OR of values from the following list.
ex. The following are in the above bit set.
- FAPEX_IOCCOM_CLKPWR_GET_PWM
Gets the pulse width modulation (PWM).
Set pointer of int32_t data field to pArg.
The PWM counter value (max 10bit) will be set to this field.