Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/ingenic/jz4780_codec.h
Show All 25 Lines | |||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#define CODEC_RGADW 0x00 /* Address, data in and write command */ | #define CODEC_RGADW 0x00 /* Address, data in and write command */ | ||||
#define RGADW_ICRST (1 << 31) /* Reset internal CODEC */ | #define RGADW_ICRST (1U << 31) /* Reset internal CODEC */ | ||||
#define RGADW_RGWR (1 << 16) /* Issue a write command to CODEC */ | #define RGADW_RGWR (1 << 16) /* Issue a write command to CODEC */ | ||||
#define RGADW_RGADDR_S 8 /* CODEC register's address. */ | #define RGADW_RGADDR_S 8 /* CODEC register's address. */ | ||||
#define RGADW_RGADDR_M (0x7f << RGADW_RGADDR_S) | #define RGADW_RGADDR_M (0x7f << RGADW_RGADDR_S) | ||||
#define RGADW_RGDIN_S 0 /* CODEC register data to write */ | #define RGADW_RGDIN_S 0 /* CODEC register data to write */ | ||||
#define RGADW_RGDIN_M (0xff << RGADW_RGDIN_S) | #define RGADW_RGDIN_M (0xff << RGADW_RGDIN_S) | ||||
#define CODEC_RGDATA 0x04 /* The data read out */ | #define CODEC_RGDATA 0x04 /* The data read out */ | ||||
#define SR 0x00 /* Status Register */ | #define SR 0x00 /* Status Register */ | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |