| /src/sys/arch/mvme68k/stand/sboot/ |
| console.c | 42 struct zs_hw *zs = (struct zs_hw *)CONS_ZS_ADDR; variable in typeref:struct:zs_hw 55 zs->ctl = 1; rr1 = zs->ctl; 56 zs->ctl = 0; 57 if ((rr1 & 0x1) == 1 && (zs->ctl & 0x4) == 4) 60 zs->ctl = 9; 61 zs->ctl = 0x00; /* clear interrupt */ 62 zs->ctl = 4; 63 zs->ctl = 0x44; /* 16x clk, 1 stop bit */ 64 zs->ctl = 5 [all...] |
| /src/sys/arch/ews4800mips/stand/common/ |
| cons_zs.c | 40 struct zs zs; variable in typeref:struct:zs 53 zs.csr = (volatile uint8_t *)csr; 54 zs.data = (volatile uint8_t *)data; 55 zs.clock = clock; 63 #define ZS_WRITE_REG(zs, reg, val) \ 65 *zs.csr = reg; \ 66 *zs.csr = val; \ 73 ZS_WRITE_REG(zs, 9, 0); 74 ZS_WRITE_REG(zs, 9, ZSWR9_HARD_RESET) [all...] |
| console.h | 99 struct zs { struct 136 extern struct zs zs;
|
| /src/usr.bin/gzip/ |
| zuncompress.c | 42 #define tab_prefixof(i) (zs->zs_codetab[i]) 43 #define tab_suffixof(i) ((char_type *)(zs->zs_htab))[i] 128 static code_int getcode(struct s_zstate *zs); 164 zclose(void *zs) 166 free(zs); 174 struct s_zstate *zs; local 176 if ((zs = calloc(1, sizeof(struct s_zstate))) == NULL) 179 zs->zs_state = S_START; 182 zs->zs_hsize = HSIZE; /* For dynamic table sizing. */ 183 zs->zs_free_ent = 0; /* First unused entry. * 215 struct s_zstate *zs; local [all...] |
| /src/common/dist/zlib/contrib/iostream2/ |
| zstream.h | 115 inline int read(izstream& zs, T* x, Items items) { 116 return ::gzread(zs.fp(), x, items*sizeof(T)); 123 inline izstream& operator>(izstream& zs, T& x) { 124 ::gzread(zs.fp(), &x, sizeof(T)); 125 return zs; 129 inline zstringlen::zstringlen(izstream& zs) { 130 zs > val.byte; 131 if (val.byte == 255) zs > val.word; 138 inline izstream& operator>(izstream& zs, char* x) { 139 zstringlen len(zs); [all...] |
| /src/sys/arch/mac68k/mac68k/ |
| conf.c | 51 cons_decl(zs); variable 55 cons_init(zs),
|
| /src/sys/arch/next68k/next68k/ |
| conf.c | 46 cons_decl(zs); variable 55 cons_init(zs),
|
| /src/sys/arch/x68k/x68k/ |
| conf.c | 54 cons_decl(zs); variable 61 cons_init(zs),
|
| /src/usr.bin/compress/ |
| zopen.c | 143 #define fp zs->zs_fp 144 #define zmode zs->zs_mode 145 #define state zs->zs_state 146 #define n_bits zs->zs_n_bits 147 #define maxbits zs->zs_maxbits 148 #define maxcode zs->zs_maxcode 149 #define maxmaxcode zs->zs_maxmaxcode 150 #define htab zs->zs_htab 151 #define codetab zs->zs_codetab 152 #define hsize zs->zs_hsiz 240 struct s_zstate *zs; local 326 struct s_zstate *zs; local 459 struct s_zstate *zs; local 656 struct s_zstate *zs; local [all...] |
| /src/sys/arch/sgimips/stand/common/ |
| iris_zs.c | 60 * Most of the following was adapted from /sys/arch/sgimips/dev/zs.c. 61 * NetBSD: zs.c,v 1.39 2015/02/18 16:47:58 macallan Exp 169 struct zschan *zs; local 172 zs = zs_get_chan_addr(1, cons_port); 174 zs_reset(zs); 176 return zs; 182 struct zschan *zs; local 184 zs = zs_get_chan_addr(1, cons_port); 186 zs_putc(zs, c); 208 struct zschan *zs; local 236 struct zschan *zs; local [all...] |
| /src/sys/arch/mvme68k/dev/ |
| zs_pcc.c | 81 * Is the zs chip present? 98 * Attach a found zs. 100 * Match slave number to zs unit number, so that misconfiguration will 108 struct zsdevice zs; local 120 /* XXX: This is a gross hack. I need to bus-space zs.c ... */ 121 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush; 122 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 1; 123 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 2; 124 zs.zs_chan_a.zc_data = (volatile uint8_t *)bush + 3; 128 * Note that the vector is not actually used by the ZS chip o 188 struct zsdevice zs; local [all...] |
| zs_pcctwo.c | 84 * Is the zs chip present? 102 * Attach a found zs. 109 struct zsdevice zs; local 121 /* XXX: This is a gross hack. I need to bus-space zs.c ... */ 122 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush + 1; 123 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 3; 124 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 5; 125 zs.zs_chan_a.zc_data = (volatile uint8_t *)bush + 7; 128 zs_config(zsc, &zs, vector + PCCTWO_VECBASE, PCLK_162); 170 struct zsdevice zs; local [all...] |
| zs.c | 1 /* $NetBSD: zs.c,v 1.46 2024/01/18 05:12:29 thorpej Exp $ */ 42 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.46 2024/01/18 05:12:29 thorpej Exp $"); 130 zs_config(struct zsc_softc *zsc, struct zsdevice *zs, int vector, int pclk) 157 zc = (channel == 0) ? &zs->zs_chan_a : &zs->zs_chan_b; 235 * Our ZS chips each have their own interrupt vector. 258 * Our ZS chips all share a common, PCC-vectored interrupt, 495 zs_cnconfig(int zsc_unit, int channel, struct zsdevice *zs, int pclk) 500 zc = (channel == 0) ? &zs->zs_chan_a : &zs->zs_chan_b [all...] |
| /src/sys/kern/ |
| kern_ctf.c | 200 z_stream zs; local 210 memset(&zs, 0, sizeof(zs)); 211 zs.zalloc = z_alloc; 212 zs.zfree = z_free; 214 if (inflateInit2(&zs, MAX_WBITS) != Z_OK) { 219 zs.avail_in = ctfsize - CTF_HDR_SIZE; 220 zs.next_in = ctfaddr + CTF_HDR_SIZE; 221 zs.avail_out = sz - CTF_HDR_SIZE; 222 zs.next_out = ((uint8_t *) ctftab) + CTF_HDR_SIZE [all...] |
| /src/sys/arch/cobalt/stand/boot/ |
| zs.c | 1 /* $NetBSD: zs.c,v 1.4 2024/05/03 21:38:15 andvar Exp $ */ 40 #include "zs.h" 54 volatile uint8_t *zs = dev; local 57 val = *(volatile uint8_t *)(zs + reg); 66 volatile uint8_t *zs = dev; local 68 *(volatile uint8_t *)(zs + reg) = val; 129 void *zs; local 131 zs = (void *)MIPS_PHYS_TO_KSEG1(ZS_BASE + addr); 132 zs_reset(zs); 134 return zs; [all...] |
| /src/lib/libm/src/ |
| s_fmal.c | 178 long double xs, ys, zs, adj; local 200 zs = frexpl(z, &ez); 234 zs = ldexpl(zs, -spread); 236 zs = copysignl(LDBL_MIN, zs); 249 r = dd_add(xy.hi, zs); 260 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */
|
| s_fma.c | 193 double xs, ys, zs, adj; local 215 zs = frexp(z, &ez); 249 zs = ldexp(zs, -spread); 251 zs = copysign(DBL_MIN, zs); 264 r = dd_add(xy.hi, zs); 275 volatile double vzs = zs; /* XXX gcc CSE bug workaround */
|
| /src/lib/libc/gdtoa/ |
| dmisc.c | 122 ULong si, z, zs; local 158 zs = (si >> 16) * q + (ys >> 16); 159 carry = zs >> 16; 162 z = (*bx >> 16) - (zs & 0xffff) - borrow; 201 zs = (si >> 16) + (ys >> 16); 202 carry = zs >> 16; 205 z = (*bx >> 16) - (zs & 0xffff) - borrow;
|
| /src/sys/dev/tc/ |
| zs_ioasic.c | 110 * ZS chips are fed a 7.372 MHz clock. 196 * Is the zs chip present? 222 * Attach a found zs. 227 struct zsc_softc *zs = device_private(self); local 236 zs->zsc_dev = self; 264 zs->zsc_cs[channel] = cs; 265 zs->zsc_addroffset = d->iada_offset; /* cookie only */ 301 cs->cs_ctl_chan = zs->zsc_cs[0]; 327 zs_ioasic_hardintr, zs); 328 zs->zsc_sih = softint_establish(SOFTINT_SERIAL 372 struct zsc_softc *zs = device_private(parent); local [all...] |
| /src/etc/etc.pmax/ |
| MAKEDEV.conf | 39 # Make zs devices as /dev/tty[abcd], 41 zs[0-9]*) 42 name=scc; unit=${i#zs}; chr=17
|
| /src/sys/arch/mipsco/obio/ |
| zs.c | 1 /* $NetBSD: zs.c,v 1.28 2021/09/11 20:28:04 andvar Exp $ */ 40 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.28 2021/09/11 20:28:04 andvar Exp $"); 169 * Is the zs chip present? 189 * Attach a found zs. 191 * Match slave number to zs unit number, so that misconfiguration will 317 * Our ZS chips all share a common, autovectored interrupt, 379 * Compute the current baud rate given a ZS channel. 660 struct zschan *zs; local 662 zs = zs_get_chan_addr(0, cons_port); 663 return zs_getc(zs); 669 struct zschan *zs; local [all...] |
| /src/sys/arch/sgimips/dev/ |
| zs.c | 1 /* $NetBSD: zs.c,v 1.43 2023/10/24 20:37:16 andvar Exp $ */ 40 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.43 2023/10/24 20:37:16 andvar Exp $"); 189 * Is the zs chip present? 203 * Attach a found zs. 205 * Match slave number to zs unit number, so that misconfiguration will 274 * pass the generic zs driver a 'no reset' flag so the 367 * Our ZS chips all share a common, autovectored interrupt, 433 * Compute the current baud rate given a ZS channel. 684 aprint_debug("zs unit %d, channel %d had address %p\n", 781 struct zschan *zs; local 801 struct zschan *zs; local [all...] |
| /src/sys/arch/news68k/dev/ |
| zs.c | 1 /* $NetBSD: zs.c,v 1.34 2021/09/11 20:28:04 andvar Exp $ */ 40 * news68k/dev/zs.c - based on {newsmips,x68k,mvme68k}/dev/zs.c 44 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.34 2021/09/11 20:28:04 andvar Exp $"); 76 * The news68k machines use three different clocks for the ZS chips. 154 * Is the zs chip present? 178 * Attach a found zs. 187 struct zsdevice *zs; local 194 zs = (void *)(ha->ha_address); 210 zc = (channel == 0) ? &zs->zs_chan_a : &zs->zs_chan_b [all...] |
| /src/sys/arch/sparc/dev/ |
| zs_kgdb.c | 64 /* Suns provide a 4.9152 MHz clock to the ZS chips. */ 159 printf("zs_kgdb_init: zs not mapped.\n"); 290 * findzs() should return the address of the given zs channel. 291 * Here we count on the PROM to map in the required zs chips. 294 findzs(int zs) 308 switch (zs) { 344 * On sun4m machines zs is in "obio" tree. 351 while ((node = findnode(node, "zs")) != 0) { 354 if (prom_getpropint(node, "slave", -1) != zs) { 360 * On some machines (e.g. the Voyager), the zs [all...] |
| /src/sys/arch/atari/conf/ |
| files.atari | 45 device zs: tty 46 attach zs at mainbus 47 file arch/atari/dev/zs.c zs needs-count
|