summaryrefslogtreecommitdiff
path: root/src/kernel/iso9660.h
diff options
context:
space:
mode:
authorBenji Dial <benji3.141@gmail.com>2020-05-16 09:53:58 -0400
committerBenji Dial <benji3.141@gmail.com>2020-05-16 09:53:58 -0400
commitc0daede46df4f546639bd2d3e11dcf064d554966 (patch)
tree2042d915325dc66baf063238b8a3c685bb91d17b /src/kernel/iso9660.h
parentf7820301d583ae190b683bdd1371ee6f7a35ac16 (diff)
downloadportland-os-c0daede46df4f546639bd2d3e11dcf064d554966.tar.gz
starting over
Diffstat (limited to 'src/kernel/iso9660.h')
-rw-r--r--src/kernel/iso9660.h96
1 files changed, 0 insertions, 96 deletions
diff --git a/src/kernel/iso9660.h b/src/kernel/iso9660.h
deleted file mode 100644
index 271e5e0..0000000
--- a/src/kernel/iso9660.h
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
-Copyright 2019 Benji Dial
-
-Permission to use, copy, modify, and/or distribute this
-software for any purpose with or without fee is hereby
-granted, provided that the above copyright notice and this
-permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS
-ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
-EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
-RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
-OF THIS SOFTWARE.
-*/
-
-#include <stdint.h>
-#include <stdbool.h>
-
-#ifndef ISO9660_H
-#define ISO9660_H
-
-enum iso_9660_vd_type {
- BOOT_RECORD = 0,
- PRIM_VOLUME = 1,
- SUPP_VOLUME = 2,
- PARTITION = 3
-};
-
-struct iso_9660_timecode {
- uint8_t year[4];
- uint8_t month[2];
- uint8_t day[2];
- uint8_t hour[2];
- uint8_t minute[2];
- uint8_t second[2];
- uint8_t centisecond[2];
- uint8_t tzone;//0 = -12, 100 = +13
-} __attribute__ ((__packed__));
-
-struct iso_9660_directory {
- uint8_t filler[34];//TODO
-} __attribute__ ((__packed__));
-
-struct iso_9660_primary_vd {
- uint8_t type;
- uint8_t id[5];
- uint8_t version;
- uint8_t spacing;
- uint8_t system_id[32];
- uint8_t volume_id[32];
- uint64_t spacing2;
- uint32_t size;//in blocks
- uint32_t size_be;
- uint64_t spacing3[4];
- uint16_t set_size;
- uint16_t set_size_be;
- uint16_t set_index;
- uint16_t set_index_be;
- uint16_t block_size;
- uint16_t block_size_be;
- uint32_t path_table_size;
- uint32_t path_table_size_be;
- uint32_t path_table_block;
- uint32_t optional_path_table_block;
- uint32_t path_table_block_be;
- uint32_t optional_path_table_block_be;
- struct iso_9660_directory root_directory;
- uint8_t set_name[128];
- uint8_t publisher[128];
- uint8_t data_preparer[128];
- uint8_t application[128];
- uint8_t copyright_file[38];
- uint8_t abstract_file[36];
- uint8_t bibliography_file[37];
- struct iso_9660_timecode created;
- struct iso_9660_timecode modified;
- struct iso_9660_timecode expires;
- struct iso_9660_timecode effective;
- uint8_t directory_format_version;
-} __attribute__ ((__packed__));
-
-struct iso_9660_cache {
- uint16_t block_size;
- struct iso_9660_directory root_directory;
- uint32_t path_table_size;
- uint32_t path_table_sector;
- uint32_t optional_path_table_sector;
-};
-
-bool iso_9660_parse_ph(uint8_t dn, uint8_t pn, uint32_t sector, uint8_t *buffer);
-
-#endif \ No newline at end of file