sis.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. /*
  2. * SiS 300/630/730/540/315/550/[M]650/651/[M]661[FM]X/740/[M]741[GX]/330/[M]760[GX]
  3. * frame buffer driver for Linux kernels >=2.4.14 and >=2.6.3
  4. *
  5. * Copyright (C) 2001-2004 Thomas Winischhofer, Vienna, Austria.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the named License,
  10. * or any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
  20. */
  21. #ifndef _SIS_H
  22. #define _SIS_H
  23. #include <linux/config.h>
  24. #include <linux/version.h>
  25. #include "osdef.h"
  26. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
  27. #include <video/sisfb.h>
  28. #else
  29. #include <linux/sisfb.h>
  30. #endif
  31. #include "vgatypes.h"
  32. #include "vstruct.h"
  33. #define VER_MAJOR 1
  34. #define VER_MINOR 7
  35. #define VER_LEVEL 17
  36. #undef SIS_CONFIG_COMPAT
  37. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
  38. #include <linux/spinlock.h>
  39. #ifdef CONFIG_COMPAT
  40. #include <linux/ioctl32.h>
  41. #define SIS_CONFIG_COMPAT
  42. #endif
  43. #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,19)
  44. #ifdef __x86_64__
  45. /* Shouldn't we check for CONFIG_IA32_EMULATION here? */
  46. #include <asm/ioctl32.h>
  47. #define SIS_CONFIG_COMPAT
  48. #endif
  49. #endif
  50. #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,8)
  51. #define SIS_IOTYPE1 void __iomem
  52. #define SIS_IOTYPE2 __iomem
  53. #define SISINITSTATIC static
  54. #else
  55. #define SIS_IOTYPE1 unsigned char
  56. #define SIS_IOTYPE2
  57. #define SISINITSTATIC
  58. #endif
  59. #undef SISFBDEBUG
  60. #ifdef SISFBDEBUG
  61. #define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args)
  62. #define TWDEBUG(x) printk(KERN_INFO x "\n");
  63. #else
  64. #define DPRINTK(fmt, args...)
  65. #define TWDEBUG(x)
  66. #endif
  67. #define SISFAIL(x) do { printk(x "\n"); return -EINVAL; } while(0)
  68. /* To be included in pci_ids.h */
  69. #ifndef PCI_DEVICE_ID_SI_650_VGA
  70. #define PCI_DEVICE_ID_SI_650_VGA 0x6325
  71. #endif
  72. #ifndef PCI_DEVICE_ID_SI_650
  73. #define PCI_DEVICE_ID_SI_650 0x0650
  74. #endif
  75. #ifndef PCI_DEVICE_ID_SI_651
  76. #define PCI_DEVICE_ID_SI_651 0x0651
  77. #endif
  78. #ifndef PCI_DEVICE_ID_SI_740
  79. #define PCI_DEVICE_ID_SI_740 0x0740
  80. #endif
  81. #ifndef PCI_DEVICE_ID_SI_330
  82. #define PCI_DEVICE_ID_SI_330 0x0330
  83. #endif
  84. #ifndef PCI_DEVICE_ID_SI_660_VGA
  85. #define PCI_DEVICE_ID_SI_660_VGA 0x6330
  86. #endif
  87. #ifndef PCI_DEVICE_ID_SI_661
  88. #define PCI_DEVICE_ID_SI_661 0x0661
  89. #endif
  90. #ifndef PCI_DEVICE_ID_SI_741
  91. #define PCI_DEVICE_ID_SI_741 0x0741
  92. #endif
  93. #ifndef PCI_DEVICE_ID_SI_660
  94. #define PCI_DEVICE_ID_SI_660 0x0660
  95. #endif
  96. #ifndef PCI_DEVICE_ID_SI_760
  97. #define PCI_DEVICE_ID_SI_760 0x0760
  98. #endif
  99. /* To be included in fb.h */
  100. #ifndef FB_ACCEL_SIS_GLAMOUR_2
  101. #define FB_ACCEL_SIS_GLAMOUR_2 40 /* SiS 315, 65x, 740, 661, 741 */
  102. #endif
  103. #ifndef FB_ACCEL_SIS_XABRE
  104. #define FB_ACCEL_SIS_XABRE 41 /* SiS 330 ("Xabre"), 760 */
  105. #endif
  106. #define MAX_ROM_SCAN 0x10000
  107. /* ivideo->caps */
  108. #define HW_CURSOR_CAP 0x80
  109. #define TURBO_QUEUE_CAP 0x40
  110. #define AGP_CMD_QUEUE_CAP 0x20
  111. #define VM_CMD_QUEUE_CAP 0x10
  112. #define MMIO_CMD_QUEUE_CAP 0x08
  113. /* For 300 series */
  114. #define TURBO_QUEUE_AREA_SIZE 0x80000 /* 512K */
  115. #define HW_CURSOR_AREA_SIZE_300 0x1000 /* 4K */
  116. /* For 315/Xabre series */
  117. #define COMMAND_QUEUE_AREA_SIZE 0x80000 /* 512K */
  118. #define COMMAND_QUEUE_THRESHOLD 0x1F
  119. #define HW_CURSOR_AREA_SIZE_315 0x4000 /* 16K */
  120. #define SIS_OH_ALLOC_SIZE 4000
  121. #define SENTINEL 0x7fffffff
  122. #define SEQ_ADR 0x14
  123. #define SEQ_DATA 0x15
  124. #define DAC_ADR 0x18
  125. #define DAC_DATA 0x19
  126. #define CRTC_ADR 0x24
  127. #define CRTC_DATA 0x25
  128. #define DAC2_ADR (0x16-0x30)
  129. #define DAC2_DATA (0x17-0x30)
  130. #define VB_PART1_ADR (0x04-0x30)
  131. #define VB_PART1_DATA (0x05-0x30)
  132. #define VB_PART2_ADR (0x10-0x30)
  133. #define VB_PART2_DATA (0x11-0x30)
  134. #define VB_PART3_ADR (0x12-0x30)
  135. #define VB_PART3_DATA (0x13-0x30)
  136. #define VB_PART4_ADR (0x14-0x30)
  137. #define VB_PART4_DATA (0x15-0x30)
  138. #define SISSR ivideo->SiS_Pr.SiS_P3c4
  139. #define SISCR ivideo->SiS_Pr.SiS_P3d4
  140. #define SISDACA ivideo->SiS_Pr.SiS_P3c8
  141. #define SISDACD ivideo->SiS_Pr.SiS_P3c9
  142. #define SISPART1 ivideo->SiS_Pr.SiS_Part1Port
  143. #define SISPART2 ivideo->SiS_Pr.SiS_Part2Port
  144. #define SISPART3 ivideo->SiS_Pr.SiS_Part3Port
  145. #define SISPART4 ivideo->SiS_Pr.SiS_Part4Port
  146. #define SISPART5 ivideo->SiS_Pr.SiS_Part5Port
  147. #define SISDAC2A SISPART5
  148. #define SISDAC2D (SISPART5 + 1)
  149. #define SISMISCR (ivideo->SiS_Pr.RelIO + 0x1c)
  150. #define SISMISCW ivideo->SiS_Pr.SiS_P3c2
  151. #define SISINPSTAT (ivideo->SiS_Pr.RelIO + 0x2a)
  152. #define SISPEL ivideo->SiS_Pr.SiS_P3c6
  153. #define IND_SIS_PASSWORD 0x05 /* SRs */
  154. #define IND_SIS_COLOR_MODE 0x06
  155. #define IND_SIS_RAMDAC_CONTROL 0x07
  156. #define IND_SIS_DRAM_SIZE 0x14
  157. #define IND_SIS_MODULE_ENABLE 0x1E
  158. #define IND_SIS_PCI_ADDRESS_SET 0x20
  159. #define IND_SIS_TURBOQUEUE_ADR 0x26
  160. #define IND_SIS_TURBOQUEUE_SET 0x27
  161. #define IND_SIS_POWER_ON_TRAP 0x38
  162. #define IND_SIS_POWER_ON_TRAP2 0x39
  163. #define IND_SIS_CMDQUEUE_SET 0x26
  164. #define IND_SIS_CMDQUEUE_THRESHOLD 0x27
  165. #define IND_SIS_AGP_IO_PAD 0x48
  166. #define SIS_CRT2_WENABLE_300 0x24 /* Part1 */
  167. #define SIS_CRT2_WENABLE_315 0x2F
  168. #define SIS_PASSWORD 0x86 /* SR05 */
  169. #define SIS_INTERLACED_MODE 0x20 /* SR06 */
  170. #define SIS_8BPP_COLOR_MODE 0x0
  171. #define SIS_15BPP_COLOR_MODE 0x1
  172. #define SIS_16BPP_COLOR_MODE 0x2
  173. #define SIS_32BPP_COLOR_MODE 0x4
  174. #define SIS_ENABLE_2D 0x40 /* SR1E */
  175. #define SIS_MEM_MAP_IO_ENABLE 0x01 /* SR20 */
  176. #define SIS_PCI_ADDR_ENABLE 0x80
  177. #define SIS_AGP_CMDQUEUE_ENABLE 0x80 /* 315/330 series SR26 */
  178. #define SIS_VRAM_CMDQUEUE_ENABLE 0x40
  179. #define SIS_MMIO_CMD_ENABLE 0x20
  180. #define SIS_CMD_QUEUE_SIZE_512k 0x00
  181. #define SIS_CMD_QUEUE_SIZE_1M 0x04
  182. #define SIS_CMD_QUEUE_SIZE_2M 0x08
  183. #define SIS_CMD_QUEUE_SIZE_4M 0x0C
  184. #define SIS_CMD_QUEUE_RESET 0x01
  185. #define SIS_CMD_AUTO_CORR 0x02
  186. #define SIS_SIMULTANEOUS_VIEW_ENABLE 0x01 /* CR30 */
  187. #define SIS_MODE_SELECT_CRT2 0x02
  188. #define SIS_VB_OUTPUT_COMPOSITE 0x04
  189. #define SIS_VB_OUTPUT_SVIDEO 0x08
  190. #define SIS_VB_OUTPUT_SCART 0x10
  191. #define SIS_VB_OUTPUT_LCD 0x20
  192. #define SIS_VB_OUTPUT_CRT2 0x40
  193. #define SIS_VB_OUTPUT_HIVISION 0x80
  194. #define SIS_VB_OUTPUT_DISABLE 0x20 /* CR31 */
  195. #define SIS_DRIVER_MODE 0x40
  196. #define SIS_VB_COMPOSITE 0x01 /* CR32 */
  197. #define SIS_VB_SVIDEO 0x02
  198. #define SIS_VB_SCART 0x04
  199. #define SIS_VB_LCD 0x08
  200. #define SIS_VB_CRT2 0x10
  201. #define SIS_CRT1 0x20
  202. #define SIS_VB_HIVISION 0x40
  203. #define SIS_VB_YPBPR 0x80
  204. #define SIS_VB_TV (SIS_VB_COMPOSITE | SIS_VB_SVIDEO | \
  205. SIS_VB_SCART | SIS_VB_HIVISION | SIS_VB_YPBPR)
  206. #define SIS_EXTERNAL_CHIP_MASK 0x0E /* CR37 (< SiS 660) */
  207. #define SIS_EXTERNAL_CHIP_SIS301 0x01 /* in CR37 << 1 ! */
  208. #define SIS_EXTERNAL_CHIP_LVDS 0x02
  209. #define SIS_EXTERNAL_CHIP_TRUMPION 0x03
  210. #define SIS_EXTERNAL_CHIP_LVDS_CHRONTEL 0x04
  211. #define SIS_EXTERNAL_CHIP_CHRONTEL 0x05
  212. #define SIS310_EXTERNAL_CHIP_LVDS 0x02
  213. #define SIS310_EXTERNAL_CHIP_LVDS_CHRONTEL 0x03
  214. #define SIS_AGP_2X 0x20 /* CR48 */
  215. #define HW_DEVICE_EXTENSION SIS_HW_INFO
  216. #define PHW_DEVICE_EXTENSION PSIS_HW_INFO
  217. /* I/O port access macros */
  218. #define inSISREG(base) inb(base)
  219. #define outSISREG(base,val) outb(val,base)
  220. #define orSISREG(base,val) \
  221. do { \
  222. u8 __Temp = inSISREG(base); \
  223. outSISREG(base, __Temp | (val)); \
  224. } while (0)
  225. #define andSISREG(base,val) \
  226. do { \
  227. u8 __Temp = inSISREG(base); \
  228. outSISREG(base, __Temp & (val)); \
  229. } while (0)
  230. #define inSISIDXREG(base,idx,var) \
  231. do { \
  232. outSISREG(base, idx); \
  233. var = inSISREG((base)+1); \
  234. } while (0)
  235. #define outSISIDXREG(base,idx,val) \
  236. do { \
  237. outSISREG(base, idx); \
  238. outSISREG((base)+1, val); \
  239. } while (0)
  240. #define orSISIDXREG(base,idx,val) \
  241. do { \
  242. u8 __Temp; \
  243. outSISREG(base, idx); \
  244. __Temp = inSISREG((base)+1) | (val); \
  245. outSISREG((base)+1, __Temp); \
  246. } while (0)
  247. #define andSISIDXREG(base,idx,and) \
  248. do { \
  249. u8 __Temp; \
  250. outSISREG(base, idx); \
  251. __Temp = inSISREG((base)+1) & (and); \
  252. outSISREG((base)+1, __Temp); \
  253. } while (0)
  254. #define setSISIDXREG(base,idx,and,or) \
  255. do { \
  256. u8 __Temp; \
  257. outSISREG(base, idx); \
  258. __Temp = (inSISREG((base)+1) & (and)) | (or); \
  259. outSISREG((base)+1, __Temp); \
  260. } while (0)
  261. /* MMIO access macros */
  262. #define MMIO_IN8(base, offset) readb((base+offset))
  263. #define MMIO_IN16(base, offset) readw((base+offset))
  264. #define MMIO_IN32(base, offset) readl((base+offset))
  265. #define MMIO_OUT8(base, offset, val) writeb(((u8)(val)), (base+offset))
  266. #define MMIO_OUT16(base, offset, val) writew(((u16)(val)), (base+offset))
  267. #define MMIO_OUT32(base, offset, val) writel(((u32)(val)), (base+offset))
  268. /* Queue control MMIO registers */
  269. #define Q_BASE_ADDR 0x85C0 /* Base address of software queue */
  270. #define Q_WRITE_PTR 0x85C4 /* Current write pointer */
  271. #define Q_READ_PTR 0x85C8 /* Current read pointer */
  272. #define Q_STATUS 0x85CC /* queue status */
  273. #define MMIO_QUEUE_PHYBASE Q_BASE_ADDR
  274. #define MMIO_QUEUE_WRITEPORT Q_WRITE_PTR
  275. #define MMIO_QUEUE_READPORT Q_READ_PTR
  276. #ifndef FB_BLANK_UNBLANK
  277. #define FB_BLANK_UNBLANK 0
  278. #endif
  279. #ifndef FB_BLANK_NORMAL
  280. #define FB_BLANK_NORMAL 1
  281. #endif
  282. #ifndef FB_BLANK_VSYNC_SUSPEND
  283. #define FB_BLANK_VSYNC_SUSPEND 2
  284. #endif
  285. #ifndef FB_BLANK_HSYNC_SUSPEND
  286. #define FB_BLANK_HSYNC_SUSPEND 3
  287. #endif
  288. #ifndef FB_BLANK_POWERDOWN
  289. #define FB_BLANK_POWERDOWN 4
  290. #endif
  291. enum _SIS_LCD_TYPE {
  292. LCD_INVALID = 0,
  293. LCD_800x600,
  294. LCD_1024x768,
  295. LCD_1280x1024,
  296. LCD_1280x960,
  297. LCD_640x480,
  298. LCD_1600x1200,
  299. LCD_1920x1440,
  300. LCD_2048x1536,
  301. LCD_320x480, /* FSTN */
  302. LCD_1400x1050,
  303. LCD_1152x864,
  304. LCD_1152x768,
  305. LCD_1280x768,
  306. LCD_1024x600,
  307. LCD_640x480_2, /* DSTN */
  308. LCD_640x480_3, /* DSTN */
  309. LCD_848x480,
  310. LCD_1280x800,
  311. LCD_1680x1050,
  312. LCD_1280x720,
  313. LCD_CUSTOM,
  314. LCD_UNKNOWN
  315. };
  316. enum _SIS_CMDTYPE {
  317. MMIO_CMD = 0,
  318. AGP_CMD_QUEUE,
  319. VM_CMD_QUEUE,
  320. };
  321. typedef unsigned int SIS_CMDTYPE;
  322. /* Our "par" */
  323. struct sis_video_info {
  324. int cardnumber;
  325. struct fb_info *memyselfandi;
  326. SIS_HW_INFO sishw_ext;
  327. SiS_Private SiS_Pr;
  328. sisfb_info sisfbinfo; /* For ioctl SISFB_GET_INFO */
  329. struct fb_var_screeninfo default_var;
  330. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
  331. struct fb_fix_screeninfo sisfb_fix;
  332. u32 pseudo_palette[17];
  333. #endif
  334. #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
  335. struct display sis_disp;
  336. struct display_switch sisfb_sw;
  337. struct {
  338. u16 red, green, blue, pad;
  339. } sis_palette[256];
  340. union {
  341. #ifdef FBCON_HAS_CFB16
  342. u16 cfb16[16];
  343. #endif
  344. #ifdef FBCON_HAS_CFB32
  345. u32 cfb32[16];
  346. #endif
  347. } sis_fbcon_cmap;
  348. #endif
  349. struct sisfb_monitor {
  350. u16 hmin;
  351. u16 hmax;
  352. u16 vmin;
  353. u16 vmax;
  354. u32 dclockmax;
  355. u8 feature;
  356. BOOLEAN datavalid;
  357. } sisfb_thismonitor;
  358. int chip_id;
  359. char myid[40];
  360. struct pci_dev *nbridge;
  361. int mni; /* Mode number index */
  362. #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
  363. int currcon;
  364. #endif
  365. unsigned long video_size;
  366. unsigned long video_base;
  367. unsigned long mmio_size;
  368. unsigned long mmio_base;
  369. unsigned long vga_base;
  370. SIS_IOTYPE1 *video_vbase;
  371. SIS_IOTYPE1 *mmio_vbase;
  372. unsigned char *bios_abase;
  373. int mtrr;
  374. u32 sisfb_mem;
  375. u32 sisfb_parm_mem;
  376. int sisfb_accel;
  377. int sisfb_ypan;
  378. int sisfb_max;
  379. int sisfb_userom;
  380. int sisfb_useoem;
  381. int sisfb_mode_idx;
  382. int sisfb_parm_rate;
  383. int sisfb_crt1off;
  384. int sisfb_forcecrt1;
  385. int sisfb_crt2type;
  386. int sisfb_crt2flags;
  387. int sisfb_dstn;
  388. int sisfb_fstn;
  389. int sisfb_tvplug;
  390. int sisfb_tvstd;
  391. int sisfb_filter;
  392. int sisfb_nocrt2rate;
  393. #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
  394. int sisfb_inverse;
  395. #endif
  396. u32 heapstart; /* offset */
  397. SIS_IOTYPE1 *sisfb_heap_start; /* address */
  398. SIS_IOTYPE1 *sisfb_heap_end; /* address */
  399. u32 sisfb_heap_size;
  400. int havenoheap;
  401. #if 0
  402. SIS_HEAP sisfb_heap;
  403. #endif
  404. int video_bpp;
  405. int video_cmap_len;
  406. int video_width;
  407. int video_height;
  408. unsigned int refresh_rate;
  409. unsigned int chip;
  410. u8 revision_id;
  411. int video_linelength; /* real pitch */
  412. int scrnpitchCRT1; /* pitch regarding interlace */
  413. u16 DstColor; /* For 2d acceleration */
  414. u32 SiS310_AccelDepth;
  415. u32 CommandReg;
  416. int cmdqueuelength;
  417. spinlock_t lockaccel; /* Do not use outside of kernel! */
  418. unsigned int pcibus;
  419. unsigned int pcislot;
  420. unsigned int pcifunc;
  421. int accel;
  422. u16 subsysvendor;
  423. u16 subsysdevice;
  424. u32 vbflags; /* Replacing deprecated stuff from above */
  425. u32 currentvbflags;
  426. int lcdxres, lcdyres;
  427. int lcddefmodeidx, tvdefmodeidx, defmodeidx;
  428. u32 CRT2LCDType; /* defined in "SIS_LCD_TYPE" */
  429. int current_bpp;
  430. int current_width;
  431. int current_height;
  432. int current_htotal;
  433. int current_vtotal;
  434. int current_linelength;
  435. __u32 current_pixclock;
  436. int current_refresh_rate;
  437. u8 mode_no;
  438. u8 rate_idx;
  439. int modechanged;
  440. unsigned char modeprechange;
  441. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
  442. u8 sisfb_lastrates[128];
  443. #endif
  444. int newrom;
  445. int registered;
  446. int warncount;
  447. int sisvga_engine;
  448. int hwcursor_size;
  449. int CRT2_write_enable;
  450. u8 caps;
  451. u8 detectedpdc;
  452. u8 detectedpdca;
  453. u8 detectedlcda;
  454. SIS_IOTYPE1 *hwcursor_vbase;
  455. int chronteltype;
  456. int tvxpos, tvypos;
  457. u8 p2_1f,p2_20,p2_2b,p2_42,p2_43,p2_01,p2_02;
  458. int tvx, tvy;
  459. u8 sisfblocked;
  460. struct sis_video_info *next;
  461. };
  462. typedef struct _SIS_OH {
  463. struct _SIS_OH *poh_next;
  464. struct _SIS_OH *poh_prev;
  465. u32 offset;
  466. u32 size;
  467. } SIS_OH;
  468. typedef struct _SIS_OHALLOC {
  469. struct _SIS_OHALLOC *poha_next;
  470. SIS_OH aoh[1];
  471. } SIS_OHALLOC;
  472. typedef struct _SIS_HEAP {
  473. SIS_OH oh_free;
  474. SIS_OH oh_used;
  475. SIS_OH *poh_freelist;
  476. SIS_OHALLOC *poha_chain;
  477. u32 max_freesize;
  478. struct sis_video_info *vinfo;
  479. } SIS_HEAP;
  480. #endif