1214921Scognet/* $NetBSD: cd9660_archimedes.h,v 1.1 2009/01/10 22:06:29 bjh21 Exp $ */
2214921Scognet
3214921Scognet/*-
4330449Seadler * SPDX-License-Identifier: BSD-3-Clause
5330449Seadler *
6214921Scognet * Copyright (c) 1998, 2009 Ben Harris
7214921Scognet * All rights reserved.
8214921Scognet *
9214921Scognet * Redistribution and use in source and binary forms, with or without
10214921Scognet * modification, are permitted provided that the following conditions
11214921Scognet * are met:
12214921Scognet * 1. Redistributions of source code must retain the above copyright
13214921Scognet *    notice, this list of conditions and the following disclaimer.
14214921Scognet * 2. Redistributions in binary form must reproduce the above copyright
15214921Scognet *    notice, this list of conditions and the following disclaimer in the
16214921Scognet *    documentation and/or other materials provided with the distribution.
17214921Scognet * 3. The name of the author may not be used to endorse or promote products
18214921Scognet *    derived from this software without specific prior written permission.
19214921Scognet *
20214921Scognet * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21214921Scognet * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22214921Scognet * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23214921Scognet * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24214921Scognet * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25214921Scognet * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26214921Scognet * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27214921Scognet * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28214921Scognet * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29214921Scognet * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30214921Scognet */
31214921Scognet/*
32214921Scognet * cd9660_archimedes.c - support for RISC OS "ARCHIMEDES" extension
33214921Scognet *
34214921Scognet * $FreeBSD: stable/11/usr.sbin/makefs/cd9660/cd9660_archimedes.h 330449 2018-03-05 07:26:05Z eadler $
35214921Scognet */
36214921Scognet
37214921Scognetstruct ISO_ARCHIMEDES {
38214921Scognet	char		magic[10];	/* "ARCHIMEDES" */
39214921Scognet	unsigned char	loadaddr[4];	/* Load address, little-endian */
40214921Scognet	unsigned char	execaddr[4];	/* Exec address, little-endian */
41214921Scognet	unsigned char	ro_attr;	/* RISC OS attributes */
42214921Scognet#define RO_ACCESS_UR	0x01 /* Owner read */
43214921Scognet#define RO_ACCESS_UW	0x02 /* Owner write */
44214921Scognet#define RO_ACCESS_L	0x04 /* Locked */
45214921Scognet#define RO_ACCESS_OR	0x10 /* Public read */
46214921Scognet#define RO_ACCESS_OW	0x20 /* Public write */
47214921Scognet	unsigned char	cdfs_attr;	/* Extra attributes for CDFS */
48214921Scognet#define CDFS_PLING	0x01	/* Filename begins with '!' */
49214921Scognet	char		reserved[12];
50214921Scognet};
51214921Scognet
52214921Scognetextern void archimedes_convert_tree(cd9660node *);
53