fdc.c (360048a7efac26b384fdaac7f5ae42cca87a0620) fdc.c (3ba0c6b127172366eee40a53973719101999ad8d)
1/*-
2 * Copyright (c) 2004 Poul-Henning Kamp
3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Don Ahn.
8 *

--- 1918 unchanged lines hidden (view full) ---

1927static void
1928fd_attach2(void *arg, int flag)
1929{
1930 struct fd_data *fd;
1931
1932 fd = arg;
1933
1934 fd->fd_geom = g_new_geomf(&g_fd_class,
1/*-
2 * Copyright (c) 2004 Poul-Henning Kamp
3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Don Ahn.
8 *

--- 1918 unchanged lines hidden (view full) ---

1927static void
1928fd_attach2(void *arg, int flag)
1929{
1930 struct fd_data *fd;
1931
1932 fd = arg;
1933
1934 fd->fd_geom = g_new_geomf(&g_fd_class,
1935 "fd%d", device_get_unit(fd->fdc->fdc_dev));
1935 "fd%d", device_get_unit(fd->dev));
1936 fd->fd_provider = g_new_providerf(fd->fd_geom, fd->fd_geom->name);
1937 fd->fd_geom->softc = fd;
1938 g_error_provider(fd->fd_provider, 0);
1939}
1940
1941static int
1942fd_attach(device_t dev)
1943{

--- 40 unchanged lines hidden ---
1936 fd->fd_provider = g_new_providerf(fd->fd_geom, fd->fd_geom->name);
1937 fd->fd_geom->softc = fd;
1938 g_error_provider(fd->fd_provider, 0);
1939}
1940
1941static int
1942fd_attach(device_t dev)
1943{

--- 40 unchanged lines hidden ---