at45d.c (164742) | at45d.c (172836) |
---|---|
1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/dev/flash/at45d.c 164742 2006-11-29 08:05:55Z imp $"); | 26__FBSDID("$FreeBSD: head/sys/dev/flash/at45d.c 172836 2007-10-20 23:23:23Z julian $"); |
27 28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bio.h> 31#include <sys/bus.h> 32#include <sys/conf.h> 33#include <sys/gpio.h> 34#include <sys/kernel.h> --- 141 unchanged lines hidden (view full) --- 176 sc->disk->d_name = "flash/spi"; 177 sc->disk->d_drv1 = sc; 178 sc->disk->d_maxsize = DFLTPHYS; 179 sc->disk->d_sectorsize = 1056; /* XXX */ 180 sc->disk->d_mediasize = 8192 * 1056; /* XXX */ 181 sc->disk->d_unit = device_get_unit(sc->dev); 182 disk_create(sc->disk, DISK_VERSION); 183 bioq_init(&sc->bio_queue); | 27 28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bio.h> 31#include <sys/bus.h> 32#include <sys/conf.h> 33#include <sys/gpio.h> 34#include <sys/kernel.h> --- 141 unchanged lines hidden (view full) --- 176 sc->disk->d_name = "flash/spi"; 177 sc->disk->d_drv1 = sc; 178 sc->disk->d_maxsize = DFLTPHYS; 179 sc->disk->d_sectorsize = 1056; /* XXX */ 180 sc->disk->d_mediasize = 8192 * 1056; /* XXX */ 181 sc->disk->d_unit = device_get_unit(sc->dev); 182 disk_create(sc->disk, DISK_VERSION); 183 bioq_init(&sc->bio_queue); |
184 kthread_create(&at45d_task, sc, &sc->p, 0, 0, "task: at45d flash"); | 184 kproc_create(&at45d_task, sc, &sc->p, 0, 0, "task: at45d flash"); |
185 186 config_intrhook_disestablish(&sc->config_intrhook); 187} 188 189static int 190at45d_open(struct disk *dp) 191{ 192 return 0; --- 92 unchanged lines hidden --- | 185 186 config_intrhook_disestablish(&sc->config_intrhook); 187} 188 189static int 190at45d_open(struct disk *dp) 191{ 192 return 0; --- 92 unchanged lines hidden --- |