/src/sys/arch/ofppc/stand/ofwboot/ |
ofdev.c | 1 /* $NetBSD: ofdev.c,v 1.19 2011/08/21 13:12:48 phx Exp $ */ 37 #include "ofdev.h" 183 static struct of_dev ofdev = { variable in typeref:struct:of_dev 203 if (ofdev.handle != -1) 257 memset(&ofdev, 0, sizeof ofdev); 258 ofdev.handle = handle; 261 ofdev.type = OFDEV_DISK; 262 ofdev.bsize = DEV_BSIZE; 265 error = search_mbr_label(&ofdev, 0, buf, &label, 0) [all...] |
/src/sys/arch/shark/stand/ofwboot/ |
ofdev.c | 1 /* $NetBSD: ofdev.c,v 1.9 2024/02/10 18:43:52 andvar Exp $ */ 52 #include "ofdev.h" 166 static struct of_dev ofdev = { variable in typeref:struct:of_dev 255 if (ofdev.handle != -1) 296 (void)memset(&ofdev, 0, sizeof ofdev); 297 ofdev.handle = handle; 299 ofdev.type = OFDEV_DISK; 300 ofdev.bsize = DEV_BSIZE; 302 if (strategy(&ofdev, F_READ [all...] |
/src/sys/arch/sparc/stand/ofwboot/ |
ofdev.c | 1 /* $NetBSD: ofdev.c,v 1.37 2017/09/15 13:25:34 martin Exp $ */ 57 #include "ofdev.h" 217 static struct of_dev ofdev = { variable in typeref:struct:of_dev 444 if (ofdev.handle != -1) 445 panic("devopen: ofdev already in use"); 535 memset(&ofdev, 0, sizeof ofdev); 536 ofdev.handle = handle; 538 ofdev.type = OFDEV_DISK; 539 ofdev.bsize = DEV_BSIZE [all...] |
/src/sys/arch/macppc/stand/ofwboot/ |
ofdev.c | 1 /* $NetBSD: ofdev.c,v 1.31 2024/02/10 18:43:51 andvar Exp $ */ 37 #include "ofdev.h" 135 static struct of_dev ofdev = { variable in typeref:struct:of_dev 394 if (ofdev.handle != -1) 437 memset(&ofdev, 0, sizeof ofdev); 438 ofdev.handle = handle; 439 ofdev.dmabuf = NULL; 442 ofdev.dmabuf = (void*)(uintptr_t)cells[1]; 444 ofdev.type = OFDEV_DISK [all...] |