xbox.c (161340) | xbox.c (177253) |
---|---|
1/*- 2 * Copyright (c) 2005 Rink Springer 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2005 Rink Springer 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/i386/xbox/xbox.c 161340 2006-08-15 20:10:49Z pav $ | 27 * $FreeBSD: head/sys/i386/xbox/xbox.c 177253 2008-03-16 10:58:09Z rwatson $ |
28 */ 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/eventhandler.h> 33#include <sys/reboot.h> 34#include <machine/xbox.h> 35#include <vm/vm.h> --- 41 unchanged lines hidden (view full) --- 77 *(uint32_t*)(ptr + 0x188) = 0; /* clear adapter control field */ 78 pmap_unmapdev ((vm_offset_t)ptr, 0x400); 79} 80 81/* 82 * This must be called before the drivers, as the if_nve(4) driver will fail 83 * if we do not do this in advance. 84 */ | 28 */ 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <sys/eventhandler.h> 33#include <sys/reboot.h> 34#include <machine/xbox.h> 35#include <vm/vm.h> --- 41 unchanged lines hidden (view full) --- 77 *(uint32_t*)(ptr + 0x188) = 0; /* clear adapter control field */ 78 pmap_unmapdev ((vm_offset_t)ptr, 0x400); 79} 80 81/* 82 * This must be called before the drivers, as the if_nve(4) driver will fail 83 * if we do not do this in advance. 84 */ |
85SYSINIT(xbox, SI_SUB_DRIVERS, SI_ORDER_FIRST, xbox_init, NULL) | 85SYSINIT(xbox, SI_SUB_DRIVERS, SI_ORDER_FIRST, xbox_init, NULL); |