cuda.h (f0fa81767555fe2c4b5f8c9e0725a80eac1d7f56) | cuda.h (2e3e5c7e92452900e2bb5143c5fb6d47c0897a34) |
---|---|
1/* 2 * QEMU PowerMac CUDA device support 3 * 4 * Copyright (c) 2004-2007 Fabrice Bellard 5 * Copyright (c) 2007 Jocelyn Mayer 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 40 unchanged lines hidden (view full) --- 49#define CUDA_GET_DEVICE_LIST 0x1a 50#define CUDA_SET_ONE_SECOND_MODE 0x1b 51#define CUDA_SET_POWER_MESSAGES 0x21 52#define CUDA_GET_SET_IIC 0x22 53#define CUDA_WAKEUP 0x23 54#define CUDA_TIMER_TICKLE 0x24 55#define CUDA_COMBINED_FORMAT_IIC 0x25 56 | 1/* 2 * QEMU PowerMac CUDA device support 3 * 4 * Copyright (c) 2004-2007 Fabrice Bellard 5 * Copyright (c) 2007 Jocelyn Mayer 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 40 unchanged lines hidden (view full) --- 49#define CUDA_GET_DEVICE_LIST 0x1a 50#define CUDA_SET_ONE_SECOND_MODE 0x1b 51#define CUDA_SET_POWER_MESSAGES 0x21 52#define CUDA_GET_SET_IIC 0x22 53#define CUDA_WAKEUP 0x23 54#define CUDA_TIMER_TICKLE 0x24 55#define CUDA_COMBINED_FORMAT_IIC 0x25 56 |
57 58/* MOS6522 CUDA */ 59typedef struct MOS6522CUDAState { 60 /*< private >*/ 61 MOS6522State parent_obj; 62} MOS6522CUDAState; 63 64#define TYPE_MOS6522_CUDA "mos6522-cuda" 65#define MOS6522_CUDA(obj) OBJECT_CHECK(MOS6522CUDAState, (obj), \ 66 TYPE_MOS6522_CUDA) 67 |
|
57/* Cuda */ 58#define TYPE_CUDA "cuda" 59#define CUDA(obj) OBJECT_CHECK(CUDAState, (obj), TYPE_CUDA) 60 | 68/* Cuda */ 69#define TYPE_CUDA "cuda" 70#define CUDA(obj) OBJECT_CHECK(CUDAState, (obj), TYPE_CUDA) 71 |
61typedef struct MOS6522CUDAState MOS6522CUDAState; 62 | |
63typedef struct CUDAState { 64 /*< private >*/ 65 SysBusDevice parent_obj; 66 /*< public >*/ 67 MemoryRegion mem; 68 69 ADBBusState adb_bus; | 72typedef struct CUDAState { 73 /*< private >*/ 74 SysBusDevice parent_obj; 75 /*< public >*/ 76 MemoryRegion mem; 77 78 ADBBusState adb_bus; |
70 MOS6522CUDAState *mos6522_cuda; | 79 MOS6522CUDAState mos6522_cuda; |
71 72 uint32_t tick_offset; 73 uint64_t tb_frequency; 74 75 uint8_t last_b; 76 uint8_t last_acr; 77 78 /* MacOS 9 is racy and requires a delay upon setting the SR_INT bit */ --- 8 unchanged lines hidden (view full) --- 87 uint16_t adb_poll_mask; 88 uint8_t autopoll_rate_ms; 89 uint8_t autopoll; 90 uint8_t data_in[128]; 91 uint8_t data_out[16]; 92 QEMUTimer *adb_poll_timer; 93} CUDAState; 94 | 80 81 uint32_t tick_offset; 82 uint64_t tb_frequency; 83 84 uint8_t last_b; 85 uint8_t last_acr; 86 87 /* MacOS 9 is racy and requires a delay upon setting the SR_INT bit */ --- 8 unchanged lines hidden (view full) --- 96 uint16_t adb_poll_mask; 97 uint8_t autopoll_rate_ms; 98 uint8_t autopoll; 99 uint8_t data_in[128]; 100 uint8_t data_out[16]; 101 QEMUTimer *adb_poll_timer; 102} CUDAState; 103 |
95/* MOS6522 CUDA */ 96struct MOS6522CUDAState { 97 /*< private >*/ 98 MOS6522State parent_obj; 99 100 CUDAState *cuda; 101}; 102 103#define TYPE_MOS6522_CUDA "mos6522-cuda" 104#define MOS6522_CUDA(obj) OBJECT_CHECK(MOS6522CUDAState, (obj), \ 105 TYPE_MOS6522_CUDA) 106 | |
107#endif /* CUDA_H */ | 104#endif /* CUDA_H */ |