mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
fb_accel: Some renaming nevis => hd1 & apollo => hd2
Origin commit data
------------------
Commit: f94afc1593
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-08 (Wed, 08 Feb 2017)
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
#define GXA_CFG_REG 0x0030
|
#define GXA_CFG_REG 0x0030
|
||||||
#define GXA_CFG2_REG 0x00FC
|
#define GXA_CFG2_REG 0x00FC
|
||||||
|
|
||||||
#define LOGTAG "[fb_accel_gxa] "
|
#define LOGTAG "[fb_accel_cs_hd1] "
|
||||||
/*
|
/*
|
||||||
static unsigned int _read_gxa(volatile unsigned char *base_addr, unsigned int offset)
|
static unsigned int _read_gxa(volatile unsigned char *base_addr, unsigned int offset)
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ void CFbAccelCSHD1::waitForIdle(const char *func)
|
|||||||
|
|
||||||
CFbAccelCSHD1::CFbAccelCSHD1()
|
CFbAccelCSHD1::CFbAccelCSHD1()
|
||||||
{
|
{
|
||||||
fb_name = "Coolstream NEVIS GXA framebuffer";
|
fb_name = "Coolstream HD1 framebuffer";
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFbAccelCSHD1::init(const char * const)
|
void CFbAccelCSHD1::init(const char * const)
|
||||||
@@ -363,7 +363,7 @@ int CFbAccelCSHD1::setMode(unsigned int, unsigned int, unsigned int)
|
|||||||
xRes = screeninfo.xres;
|
xRes = screeninfo.xres;
|
||||||
yRes = screeninfo.yres;
|
yRes = screeninfo.yres;
|
||||||
bpp = screeninfo.bits_per_pixel;
|
bpp = screeninfo.bits_per_pixel;
|
||||||
printf(LOGTAG "%dx%dx%d line length %d. using nevis gxa graphics accelerator.\n", xRes, yRes, bpp, stride);
|
printf(LOGTAG "%dx%dx%d line length %d. using hd1 graphics accelerator.\n", xRes, yRes, bpp, stride);
|
||||||
int needmem = stride * yRes * 2;
|
int needmem = stride * yRes * 2;
|
||||||
if (available >= needmem)
|
if (available >= needmem)
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Framebuffer acceleration hardware abstraction functions.
|
Framebuffer acceleration hardware abstraction functions.
|
||||||
The hardware dependent acceleration functions for coolstream apollo graphic chips
|
The hardware dependent acceleration functions for coolstream hd2 graphic chips
|
||||||
are represented in this class.
|
are represented in this class.
|
||||||
|
|
||||||
(C) 2017 M. Liebmann
|
(C) 2017 M. Liebmann
|
||||||
@@ -43,11 +43,11 @@
|
|||||||
#include <cs_api.h>
|
#include <cs_api.h>
|
||||||
#include <cnxtfb.h>
|
#include <cnxtfb.h>
|
||||||
|
|
||||||
#define LOGTAG "[fb_accel_apollo] "
|
#define LOGTAG "[fb_accel_cs_hd2] "
|
||||||
|
|
||||||
CFbAccelCSHD2::CFbAccelCSHD2()
|
CFbAccelCSHD2::CFbAccelCSHD2()
|
||||||
{
|
{
|
||||||
fb_name = "Coolstream APOLLO framebuffer";
|
fb_name = "Coolstream HD2 framebuffer";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -218,7 +218,7 @@ int CFbAccelCSHD2::setMode(unsigned int, unsigned int, unsigned int)
|
|||||||
xRes = screeninfo.xres;
|
xRes = screeninfo.xres;
|
||||||
yRes = screeninfo.yres;
|
yRes = screeninfo.yres;
|
||||||
bpp = screeninfo.bits_per_pixel;
|
bpp = screeninfo.bits_per_pixel;
|
||||||
printf(LOGTAG "%dx%dx%d line length %d. using apollo graphics accelerator.\n", xRes, yRes, bpp, stride);
|
printf(LOGTAG "%dx%dx%d line length %d. using hd2 graphics accelerator.\n", xRes, yRes, bpp, stride);
|
||||||
int needmem = stride * yRes * 2;
|
int needmem = stride * yRes * 2;
|
||||||
if (available >= needmem)
|
if (available >= needmem)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user