dsk.c (9f2c6cd5) | dsk.c (a3034375) |
---|---|
1/* $NetBSD: dsk.c,v 1.8 2011/07/17 20:54:46 joerg Exp $ */ | 1/* $NetBSD: dsk.c,v 1.9 2011/10/30 21:08:33 phx Exp $ */ |
2 3/*- 4 * Copyright (c) 2010 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Tohru Nishimura. 9 * --- 41 unchanged lines hidden (view full) --- 51 52#include "globals.h" 53 54/* 55 * - no vtophys() translation, vaddr_t == paddr_t. 56 */ 57#define CSR_READ_4(r) in32rb(r) 58#define CSR_WRITE_4(r,v) out32rb(r,v) | 2 3/*- 4 * Copyright (c) 2010 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Tohru Nishimura. 9 * --- 41 unchanged lines hidden (view full) --- 51 52#include "globals.h" 53 54/* 55 * - no vtophys() translation, vaddr_t == paddr_t. 56 */ 57#define CSR_READ_4(r) in32rb(r) 58#define CSR_WRITE_4(r,v) out32rb(r,v) |
59#define CSR_READ_1(r) *(volatile uint8_t *)(r) 60#define CSR_WRITE_1(r,v) *(volatile uint8_t *)(r)=(v) | 59#define CSR_READ_1(r) in8(r) 60#define CSR_WRITE_1(r,v) out8(r,v) |
61 62struct dskdv { 63 char *name; 64 int (*match)(unsigned, void *); 65 void *(*init)(unsigned, void *); 66}; 67 68static struct dskdv ldskdv[] = { --- 475 unchanged lines hidden --- | 61 62struct dskdv { 63 char *name; 64 int (*match)(unsigned, void *); 65 void *(*init)(unsigned, void *); 66}; 67 68static struct dskdv ldskdv[] = { --- 475 unchanged lines hidden --- |