Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!eru!luth!sunic!mcsun!unido!marco!leo From: leo@marco.UUCP (Matthias Pfaller) Newsgroups: comp.os.minix Subject: Re: st minix 1.5 floppy-driver, misc. sector-sizes + formatting device Summary: sorry, have forgotten a piece of code Keywords: floppy-formatting, 1k-sectors, 1mb-floppy Message-ID: <321@alice.marco.UUCP> Date: 12 Mar 90 16:14:24 GMT References: <320@alice.marco.UUCP> Organization: marco GmbH, 8047 Karlsfeld, West-Germany Lines: 40 sorry, i forgot to post the patch for sgtty.h leo@marco.UUCP (Matthias Pfaller) *** sgtty.h.1.5 Mon Mar 12 17:12:26 1990 --- sgtty.h Mon Mar 12 17:11:46 1990 *************** *** 34,40 **** --- 34,43 ---- #define CBREAK 0000002 /* enable cbreak mode */ #define COOKED 0000000 /* neither CBREAK nor RAW */ + #define DCD 010000 /* Data Carrier Detect */ + /* Line speeds */ + #define B0 0 /* code for line-hangup */ #define B110 1 #define B300 3 #define B1200 12 *************** *** 83,88 **** --- 86,102 ---- #define DC_RICD (DCLOCK|4) #define DC_WBMS100 (DCLOCK|8) #define DC_WBMS200 (DCLOCK|9) + + /* Data structures for disk ioctl */ + + struct fd_ioctl { + int sector_size; /* sector size in bytes */ + char nr_sectors; /* sectors per track */ + char nr_cylinders; /* number of cylinders */ + }; + + #define DIOCGETP (('d'<<8)|8) + #define DIOCSETP (('d'<<8)|9) #endif #include