struct smtcfb_info {
struct fb_info fb;
struct pci_dev *pdev;
+ u16 chip_id;
+ u8 chip_rev_id;
- u16 chipID;
unsigned char __iomem *m_pMMIO;
char __iomem *m_pLFB;
char *m_pDPR;
u_int width;
u_int height;
u_int hz;
-
- u8 chipRevID;
};
struct vesa_mode_table {
static void smtc_set_timing(struct smtcfb_info *sfb)
{
- switch (sfb->chipID) {
+ switch (sfb->chip_id) {
case 0x710:
case 0x712:
case 0x720:
if (!sfb)
goto failed_free;
- sfb->chipID = ent->device;
- sprintf(name, "sm%Xfb", sfb->chipID);
+ sfb->chip_id = ent->device;
+ sprintf(name, "sm%Xfb", sfb->chip_id);
pci_set_drvdata(pdev, sfb);
#endif
/* Map address and memory detection */
pFramebufferPhysical = pci_resource_start(pdev, 0);
- pci_read_config_byte(pdev, PCI_REVISION_ID, &sfb->chipRevID);
+ pci_read_config_byte(pdev, PCI_REVISION_ID, &sfb->chip_rev_id);
- switch (sfb->chipID) {
+ switch (sfb->chip_id) {
case 0x710:
case 0x712:
sfb->fb.fix.mmio_start = pFramebufferPhysical + 0x00400000;
dev_info(&pdev->dev,
"Silicon Motion SM%X Rev%X primary display mode %dx%d-%d Init Complete.",
- sfb->chipID, sfb->chipRevID, sfb->fb.var.xres,
+ sfb->chip_id, sfb->chip_rev_id, sfb->fb.var.xres,
sfb->fb.var.yres, sfb->fb.var.bits_per_pixel);
return 0;
/* reinit hardware */
sm7xx_init_hw();
- switch (sfb->chipID) {
+ switch (sfb->chip_id) {
case 0x710:
case 0x712:
/* set MCLK = 14.31818 * (0x16 / 0x2) */