Commits

Adam Hoka committed c7d51c9

change autoconf name to match oss name

Comments (0)

Files changed (2)

kernel/OS/NetBSD/os_netbsd.c

     strcpy (cdev->name, "NONE");
   cdev->name[sizeof (cdev->name) - 1] = 0;
   oss_cdevs[num] = cdev;
+
+  printf("OSS: %s installed with minor %d\n", name, num);
 }
 
 #define MAX_MEMBLOCKS	4096

setup/gen_driver_netbsd.inc

   fprintf (src, "#define DRIVER_TYPE\tDRV_%s\n", conf->bus);
   fprintf (src, "#define DEVTYPE_%s\n", conf->bus);
   fprintf (src, "\n");
-  fprintf (src, "#define DRIVER_DRVATTACH\tossdrv_%s_attach\n", rawname);
-  fprintf (src, "#define DRIVER_DRVDETACH\tossdrv_%s_detach\n", rawname);
-  fprintf (src, "#define DRIVER_DRVMATCH\tossdrv_%s_match\n", rawname);
+  fprintf (src, "#define DRIVER_DRVATTACH\toss_%s_os_attach\n", rawname);
+  fprintf (src, "#define DRIVER_DRVDETACH\toss_%s_os_detach\n", rawname);
+  fprintf (src, "#define DRIVER_DRVMATCH\toss_%s_os_match\n", rawname);
   fprintf (src, "#define DRIVER_DRVMODCMD\t%s_modcmd\n", name);
-  fprintf (src, "#define DRIVER_DRVSOFTC\tossdrv_%s_softc\n", rawname);
-  fprintf (src, "#define DRIVER_DRVCA\tossdrv_%s_ca\n", rawname);
-  fprintf (src, "#define DRIVER_DRVCD\tossdrv_%s_cd\n", rawname);
-  fprintf (src, "#define DRIVER_DRVCFDATA\tossdrv_%s_cfdata\n", rawname);
-  fprintf (src, "#define DRIVER_DRVLOC\tossdrv_%s_loc\n", rawname);
-  fprintf (src, "#define DRIVER_DRVNAME\tossdrv_%s\n", rawname);
-  fprintf (src, "#define DRIVER_DRVNAMESTR\t\"ossdrv_%s\"\n", rawname);
+  fprintf (src, "#define DRIVER_DRVSOFTC\toss_%s_softc\n", rawname);
+  fprintf (src, "#define DRIVER_DRVCA\toss_%s_ca\n", rawname);
+  fprintf (src, "#define DRIVER_DRVCD\toss_%s_cd\n", rawname);
+  fprintf (src, "#define DRIVER_DRVCFDATA\toss_%s_cfdata\n", rawname);
+  fprintf (src, "#define DRIVER_DRVLOC\toss_%s_loc\n", rawname);
+  fprintf (src, "#define DRIVER_DRVNAME\toss_%s\n", rawname);
+  fprintf (src, "#define DRIVER_DRVNAMESTR\t\"oss_%s\"\n", rawname);
   fprintf (src, "\n");
 
 /*