|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 2844 (0xb1c) Types: TextFile Notes: UNIX file Names: »coherent.h«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code └─⟦2d53db1df⟧ UNIX Filesystem └─⟦this⟧ »sys/z8001/h/coherent.h«
/* (-lgl * The information contained herein is a trade secret of Mark Williams * Company, and is confidential information. It is provided under a * license agreement, and may be copied or disclosed only under the * terms of that agreement. Any reproduction or disclosure of this * material without the express written authorization of Mark Williams * Company or persuant to the license agreement is unlawful. * * COHERENT Version 0.7.3 * Copyright (c) 1982, 1983, 1984. * An unpublished work by Mark Williams Company, Chicago. * All rights reserved. -lgl) */ /* * Some useful and miscellaneous things. */ #define KERNEL #include <types.h> #include <timeout.h> #include <machine.h> #include <param.h> #include <fun.h> /* * Null */ #ifndef NULL /* machine.h doesn't have any ideas */ #define NULL 0 #endif /* * Storage management functions. */ extern char *alloc(); #define kalloc(n) alloc(allkp, n) #define kfree(p) free(p) /* * Functions for copying between kernel and segments. */ #define kscopy(k, s, o, n) kpcopy(k, ctob((paddr_t)s->s_mbase)+o, n) #define skcopy(s, o, k, n) pkcopy(ctob((paddr_t)s->s_mbase)+o, k, n) /* * Functions to help with non-contiguous virtual * address spaces on large model machines. These * functions must be defined as a group or left * to the defaults below. */ #ifndef kdaddr #define kdaddr(o) (o) /* Kernel data offset - /dev/kmem */ #define ptov(p) (p) /* Physical offset to virtual ptr */ #define vtop(v) (v) /* Virtual address to phys. offset */ #endif /* * Time of day structure. */ typedef struct TIME { time_t t_time; /* Time and date */ int t_tick; /* Clock ticks into this second */ int t_zone; /* Time zone */ int t_dstf; /* Daylight saving time used */ } TIME; /* * General global variables. */ extern int debflag; /* General debug flag */ extern int alcflag; /* Service alarms */ extern int batflag; /* Turn on clock flag */ extern int outflag; /* Device timeouts */ extern int ttyflag; /* Console is present */ extern int mactype; /* Machine type */ extern unsigned utimer; /* Unsigned timer */ extern TIM stimer; /* Swap timer */ extern unsigned msize; /* Memory size in K */ extern unsigned asize; /* Alloc size in bytes */ extern TIME timer; /* Current time */ extern char *icodep; /* Init code start */ extern int icodes; /* Init code size */ extern dev_t rootdev; /* Root device */ extern dev_t swapdev; /* Swap device */ extern dev_t pipedev; /* Pipe device */ extern saddr_t corebot; /* Bottom of core */ extern saddr_t coretop; /* Top of core */ extern daddr_t swapbot; /* Bottom of swap */ extern daddr_t swaptop; /* Top of swap */ extern paddr_t blockp; /* Base of buffers */ extern paddr_t clistp; /* Base of clists */ extern struct all *allkp; /* Alloc space */