dino.c (944d79559d154c12becde0dab327016cf438f46c) dino.c (cb6fc18e9ca615f03d18e60c49855b434ca2e51e)
1/*
2** DINO manager
3**
4** (c) Copyright 1999 Red Hat Software
5** (c) Copyright 1999 SuSE GmbH
6** (c) Copyright 1999,2000 Hewlett-Packard Company
7** (c) Copyright 2000 Grant Grundler
8**

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

984"Systems shipped after Aug 20, 1997 will not exhibit this problem.\n"
985"Models affected: C180, C160, C160L, B160L, and B132L workstations.\n\n",
986 dev->id.hversion_rev);
987/* REVISIT: why are C200/C240 listed in the README table but not
988** "Models affected"? Could be an omission in the original literature.
989*/
990 }
991
1/*
2** DINO manager
3**
4** (c) Copyright 1999 Red Hat Software
5** (c) Copyright 1999 SuSE GmbH
6** (c) Copyright 1999,2000 Hewlett-Packard Company
7** (c) Copyright 2000 Grant Grundler
8**

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

984"Systems shipped after Aug 20, 1997 will not exhibit this problem.\n"
985"Models affected: C180, C160, C160L, B160L, and B132L workstations.\n\n",
986 dev->id.hversion_rev);
987/* REVISIT: why are C200/C240 listed in the README table but not
988** "Models affected"? Could be an omission in the original literature.
989*/
990 }
991
992 dino_dev = kmalloc(sizeof(struct dino_device), GFP_KERNEL);
992 dino_dev = kzalloc(sizeof(struct dino_device), GFP_KERNEL);
993 if (!dino_dev) {
994 printk("dino_init_chip - couldn't alloc dino_device\n");
995 return 1;
996 }
997
993 if (!dino_dev) {
994 printk("dino_init_chip - couldn't alloc dino_device\n");
995 return 1;
996 }
997
998 memset(dino_dev, 0, sizeof(struct dino_device));
999
1000 dino_dev->hba.dev = dev;
1001 dino_dev->hba.base_addr = ioremap(hpa, 4096);
1002 dino_dev->hba.lmmio_space_offset = 0; /* CPU addrs == bus addrs */
1003 spin_lock_init(&dino_dev->dinosaur_pen);
1004 dino_dev->hba.iommu = ccio_get_iommu(dev);
1005
1006 if (is_card_dino(&dev->id)) {
1007 dino_card_init(dino_dev);

--- 66 unchanged lines hidden ---
998 dino_dev->hba.dev = dev;
999 dino_dev->hba.base_addr = ioremap(hpa, 4096);
1000 dino_dev->hba.lmmio_space_offset = 0; /* CPU addrs == bus addrs */
1001 spin_lock_init(&dino_dev->dinosaur_pen);
1002 dino_dev->hba.iommu = ccio_get_iommu(dev);
1003
1004 if (is_card_dino(&dev->id)) {
1005 dino_card_init(dino_dev);

--- 66 unchanged lines hidden ---