/[gxemul]/trunk/src/devices/dev_bt431.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_bt431.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_bt431.c,v 1.12 2006/12/30 13:30:57 debug Exp $   *  $Id: dev_bt431.c,v 1.13 2007/06/15 18:44:19 debug Exp $
29   *     *  
30   *  Brooktree 431, used by TURBOchannel graphics cards.   *  COMMENT: Brooktree BT431, used by TURBOchannel graphics cards
31   *   *
32   *  TODO.   *  TODO.
33   */   */
# Line 60  struct bt431_data { Line 60  struct bt431_data {
60  };  };
61    
62    
 /*  
  *  dev_bt431_access():  
  */  
63  DEVICE_ACCESS(bt431)  DEVICE_ACCESS(bt431)
64  {  {
65          struct bt431_data *d = (struct bt431_data *) extra;          struct bt431_data *d = extra;
66          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;
67          int btaddr;          int btaddr;
68  #if 0  #if 0
# Line 201  on = 1; Line 198  on = 1;
198  void dev_bt431_init(struct memory *mem, uint64_t baseaddr,  void dev_bt431_init(struct memory *mem, uint64_t baseaddr,
199          struct vfb_data *vfb_data, int planes)          struct vfb_data *vfb_data, int planes)
200  {  {
201          struct bt431_data *d = malloc(sizeof(struct bt431_data));          struct bt431_data *d;
202          if (d == NULL) {  
203                  fprintf(stderr, "out of memory\n");          CHECK_ALLOCATION(d = malloc(sizeof(struct bt431_data)));
                 exit(1);  
         }  
204          memset(d, 0, sizeof(struct bt431_data));          memset(d, 0, sizeof(struct bt431_data));
205    
206          d->vfb_data     = vfb_data;          d->vfb_data     = vfb_data;
207          d->planes       = planes;          d->planes       = planes;
208          d->cursor_x     = -1;          d->cursor_x     = -1;

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26