lance.c (c3ab4c9cf24ec9efb9c6d82b6027c0587d3081fa) | lance.c (125ee0ed9cad04307498ac2b7b0d51ad8a807360) |
---|---|
1/* 2 * QEMU AMD PC-Net II (Am79C970A) emulation 3 * 4 * Copyright (c) 2004 Antony T Curtis 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 136 unchanged lines hidden (view full) --- 145}; 146 147static void lance_class_init(ObjectClass *klass, void *data) 148{ 149 DeviceClass *dc = DEVICE_CLASS(klass); 150 SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); 151 152 k->init = lance_init; | 1/* 2 * QEMU AMD PC-Net II (Am79C970A) emulation 3 * 4 * Copyright (c) 2004 Antony T Curtis 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 136 unchanged lines hidden (view full) --- 145}; 146 147static void lance_class_init(ObjectClass *klass, void *data) 148{ 149 DeviceClass *dc = DEVICE_CLASS(klass); 150 SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); 151 152 k->init = lance_init; |
153 set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); |
|
153 dc->fw_name = "ethernet"; 154 dc->reset = lance_reset; 155 dc->vmsd = &vmstate_lance; 156 dc->props = lance_properties; 157} 158 159static const TypeInfo lance_info = { 160 .name = "lance", 161 .parent = TYPE_SYS_BUS_DEVICE, 162 .instance_size = sizeof(SysBusPCNetState), 163 .class_init = lance_class_init, 164}; 165 166static void lance_register_types(void) 167{ 168 type_register_static(&lance_info); 169} 170 171type_init(lance_register_types) | 154 dc->fw_name = "ethernet"; 155 dc->reset = lance_reset; 156 dc->vmsd = &vmstate_lance; 157 dc->props = lance_properties; 158} 159 160static const TypeInfo lance_info = { 161 .name = "lance", 162 .parent = TYPE_SYS_BUS_DEVICE, 163 .instance_size = sizeof(SysBusPCNetState), 164 .class_init = lance_class_init, 165}; 166 167static void lance_register_types(void) 168{ 169 type_register_static(&lance_info); 170} 171 172type_init(lance_register_types) |