/usr/include/newsiodev/sddefs.cの編集
ファイルの末尾「End of table」の直前に以下の部分を追加
行先頭の{の前は空白で、本文行の前はtabで、本文とコメントの間はtabで埋める
{ /* SONY CD-ROM CDU-XXXX */
18, /* identify length */
"SONY CD-ROM CDU", /* vendor & product ID */
revs_all, /* revision */
-1, /* drive capacity */
"CD-ROM (type A)", /* device nickname */
CDROM, /* device type code */
0, /* firmware spec */
#ifdef FORMAT_PAGE
NULL, /* Format Parameters */
0, /* Format time (in seconds) */
0, /* reserved */
#else /* FORMAT_PAGE */
0, /* synchronous transfer period */
0, /* synchronous transfer offset */
NULL, /* device setup commands */
#endif /* FORMAT_PAGE */
&sdst_cdrom, /* device specifications */
NULL, /* normal Error Recovery Parameters */
NULL, /* max Error Recovery Parameters */
NULL, /* Other Parameters */
0, /* Format options */
},
NULL, /* Other Parameters */
0, /* Format options */
},
=======ここを追加して以下のようにする
{ /* End of table */
-1,
}
};
#endif /* NSD > 0 */
"IBM 0632ACA "などの""囲み部分は空白で埋める
#endif /* FORMAT_PAGE */
&sdst_cdrom, /* device specifications */
NULL, /* normal Error Recovery Parameters */
NULL, /* max Error Recovery Parameters */
NULL, /* Other Parameters */
0, /* Format options */
},
=======ここから追加部分
{ /* SONY SMO-S501 ISO format */
16,
"IBM 0632ACA ", /* identify length */
"0048", /* revision */
0x011c049, /* drive capacity */
"IBM_632ACA", /* device nickname */
IBM_632ACA, /* device type code */
FIRM_AWRE, /* firmware spec */
#ifdef FORMAT_PAGE
NULL, /* Format Parameters */
27 * 60 + 10, /* Format time (in seconds) */
0, /* reserved */
#else /* FORMAT_PAGE */
50, /* synchronous transfer period */
12, /* synchronous transfer offset */
NULL, /* device setup commands */
#endif /* FORMAT_PAGE */
&sdst_smo_s501_iso, /* device specifications */
erp_smo_s501, /* normal Error Recovery Parameters */
max_erp_smo_s501, /* max Error Recovery Parameters */
NULL, /* Other Paramaters */
FMT_DLF_PHYS, /* Format options */
},
{ /* SONY SMO-S501 ISO format */
16, /* identify length */
"IBM 0632CHX ",
"0048", /* revision */
0x011c049, /* drive capacity */
"IBM_632CHX", /* device nickname */
IBM_632CHX, /* device type code */
FIRM_AWRE, /* firmware spec */
#ifdef FORMAT_PAGE
NULL, /* Format Parameters */
27 * 60 + 10, /* Format time (in seconds) */
0, /* reserved */
#else /* FORMAT_PAGE */
50, /* synchronous transfer period */
12, /* synchronous transfer offset */
NULL, /* device setup commands */
#endif /* FORMAT_PAGE */
&sdst_smo_s501_iso, /* device specifications */
erp_smo_s501, /* normal Error Recovery Parameters */
max_erp_smo_s501, /* max Error Recovery Parameters */
NULL, /* Other Parameters */
FMT_DLF_PHYS, /* Format options */
},
=======ここまで追加部分
{ /* End of table */
-1,
}
};
#endif /* NSD > 0 */
追加するプログラム部分
/usr/include/newsiodev/sdreg.hの編集
ファイルの中程「};」の直前に以下の2行を追加
/* device type code */
enum sd_device_types {
UNKNOWN_DISK,
WREN3_101,
WREN3_101_HH,
WREN3_182,
WREN4_286,
WREN5_170_HH,
WREN6_415_HH,
DK515C_78,
DK516C_16,
DK517C_37,
(中略)
SMO_S501, /* format mode 2 */
SMO_S501_ISO, /* format mode 3 (spare band 1024) */
SMO_S501_ISO2, /* format mode 3 (spare band 2048) */
SMO_C301_ISO, /* format mode 3 (spare band 1024) */
SMO_F331_ISO, /* format mode 3 (spare band 1024) */
SMO_F521_FM3, /* format mode 3 (spare band 2048) */
SMO_F521_FM4, /* format mode 4 (spare band 2048) */
CDROM, /* type A */
CDU541, /* type B */
CDU561, /* type C */
=======ここに2行を追加して以下のようにする
};
#ifdef news1800
# define SYNC_TR_OFS 4
#else /* news1800 */
# define SYNC_TR_OFS 0
#endif /* news1800 */
CDROM, /* type A */
CDU541, /* type B */
CDU561, /* type C */
=======ここから追加部分
IBM_632ACA,
IBM_632CHX,
=======ここまで追加部分
};