BCOS File FormatsProject Map
BCOS File Type Specification
Preliminary Draft
 

Contents

1                Introduction
1.1                File Type Numbers
1.2                File Type List



1   Introduction

For the BCOS operating system, files are given standard file type so that software can easily determine the file format used by the file without guessing.


1.1   File Type Numbers

A 32-bit file type number is split into a pair of 16-bit components. The first 16-bit component is the "file type major" which specifies the type of data (e.g. graphics data, text data, an executable file, etc) and the second 16-bit component is the "file type minor" which specifies the exact format for the file. For example, the file type major might indicate that the file contains graphics data, while the file type minor would indicate if the file is in the OS's native graphics file format or a JPG, a GIF, a BMP, etc. For all native file formats except for OS specific files, the file type minor is always zero. For OS specific files (which all use native file formats) the file type major is always 0xFFFF, however these file types and file formats aren't intended to be used by normal applications.


1.2   File Type List

The list of file type numbers (Table 1.1: File Type Numbers) is the authoritative list of all valid file type numbers, including a link to the specification that defines each file format where possible.

MajorMinorDescription
  0x0000
  0x0000
  Unknown file type
  0x0010
  0x0000
  Plain Text (Native, see BCOS Plain Text File Format Specification)
  0x8000
  0x0000
  Graphics Image (Native, see [I haven't done it yet...])
  0x8000
  0x0001
  PNG
  0x8000
  0x0002
  JPEG
  0x8000
  0x0003
  BMP
  0xC000
  0x0000
  Compressed File (Native, see BCOS Compressed Native File Format Specification)
  0xFFFF
  0x0010
  Faulty RAM List (Native, see BCOS Faulty RAM List File Format Specification)
  0xFFFF
  0x0080
  80x86 Common PC BIOS Module (Native, see BCOS 80x86 Common PC BIOS Module File Format Specification)
  0xFFFF
  0x0100
  Boot Image (Native, see BCOS Boot Image File Format Specification)
  0xFFFF
  0x0180
  Boot Catalogue (Native, see BCOS Boot Catalogue Specification)
  0xFFFF
  0x1000
  Executable File (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1001
  Executable File used for Stage 2 Manager (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1002
  Executable File used for Stage 2 Display Modules (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1003
  Executable File used for Stage 2 CPU Detection Modules (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1004
  Executable File used for Stage 2 Memory Testing Modules (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1010
  Executable File used for Kernel Module, Slot 1 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1011
  Executable File used for Kernel Module, Slot 2 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1012
  Executable File used for Kernel Module, Slot 3 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1013
  Executable File used for Kernel Module, Slot 4 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1014
  Executable File used for Kernel Module, Slot 5 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1015
  Executable File used for Kernel Module, Slot 6 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1016
  Executable File used for Kernel Module, Slot 7 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1017
  Executable File used for Kernel Module, Slot 8 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1018
  Executable File used for Kernel Module, Slot 9 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x1019
  Executable File used for Kernel Module, Slot 10 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x101A
  Executable File used for Kernel Module, Slot 11 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x101B
  Executable File used for Kernel Module, Slot 12 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x101C
  Executable File used for Kernel Module, Slot 13 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x101D
  Executable File used for Kernel Module, Slot 14 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x101E
  Executable File used for Kernel Module, Slot 15 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0x101F
  Executable File used for Kernel Module, Slot 16 (Native, see BCOS Native Executable File Format Specification)
  0xFFFF
  0xC010
  EDID File (Native, see BCOS EDID File Format Specification)
Table 1.1 - File Type Numbers


Generated on Sun Nov 8 03:50:51 2009