/[gxemul]/trunk/src/devices/dev_ahc.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_ahc.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_ahc.c,v 1.7 2007/01/28 00:41:16 debug Exp $   *  $Id: dev_ahc.c,v 1.8 2007/06/15 18:44:18 debug Exp $
29   *   *
30   *  Adaptec AHC SCSI controller.   *  COMMENT: Adaptec AHC SCSI controller
31   *   *
32   *  NetBSD should say something like this, on SGI-IP32:   *  NetBSD should say something like this, on SGI-IP32:
33   *      ahc0 at pci0 dev 1 function 0   *      ahc0 at pci0 dev 1 function 0
# Line 193  DEVICE_ACCESS(ahc) Line 193  DEVICE_ACCESS(ahc)
193    
194  DEVINIT(ahc)  DEVINIT(ahc)
195  {  {
196          struct ahc_data *d = malloc(sizeof(struct ahc_data));          struct ahc_data *d;
197          if (d == NULL) {  
198                  fprintf(stderr, "out of memory\n");          CHECK_ALLOCATION(d = malloc(sizeof(struct ahc_data)));
                 exit(1);  
         }  
199          memset(d, 0, sizeof(struct ahc_data));          memset(d, 0, sizeof(struct ahc_data));
200    
201          memory_device_register(devinit->machine->memory, devinit->name,          memory_device_register(devinit->machine->memory, devinit->name,

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

  ViewVC Help
Powered by ViewVC 1.1.26