Lines Matching +full:0 +full:x4000
40 qpci_device_foreach(pcibus, 0x10ec, 0x8139, save_fn, &dev); in get_device()
63 PORT(Timer, l, 0x48)
64 PORT(IntrMask, w, 0x3c)
65 PORT(IntrStatus, w, 0x3E)
66 PORT(TimerInt, l, 0x54)
68 #define fatal(...) do { g_test_message(__VA_ARGS__); g_assert_not_reached(); } while (0)
77 out_IntrMask(0); in test_timer()
84 out_TimerInt(0); /* disable timer */ in test_timer()
85 out_IntrStatus(0x4000); in test_timer()
86 out_Timer(12345); /* reset timer to 0 */ in test_timer()
91 for (cnt = 0; ; ) { in test_timer()
97 diff = (curr-prev) & 0xffffffffu; in test_timer()
106 /* Test 2. Check we didn't get an interrupt with TimerInt == 0 */ in test_timer()
107 if (in_IntrStatus() & 0x4000) { in test_timer()
111 /* Test 3. Setting TimerInt to 1 and Timer to 0 get interrupt */ in test_timer()
113 out_Timer(0); in test_timer()
115 if ((in_IntrStatus() & 0x4000) == 0) { in test_timer()
120 out_IntrStatus(0x4000); in test_timer()
121 if (in_IntrStatus() & 0x4000) { in test_timer()
126 out_Timer(0); in test_timer()
127 out_TimerInt(0); in test_timer()
128 out_IntrStatus(0x4000); in test_timer()
132 out_Timer(0); in test_timer()
133 if ((in_IntrStatus() & 0x4000) == 0) { in test_timer()
138 out_Timer(0); in test_timer()
139 out_TimerInt(0); in test_timer()
140 out_IntrStatus(0x4000); in test_timer()
144 out_TimerInt(0); in test_timer()
145 if ((in_IntrStatus() & 0x4000) == 0) { in test_timer()
153 for (cnt = 0; ; ) { in test_timer()
157 diff = (curr-prev) & 0xffffffffu; in test_timer()
162 if ((in_IntrStatus() & 0x4000) == 0) { in test_timer()
165 out_IntrStatus(0x4000); in test_timer()
171 /* Test 5. Second time we pass from 0 should see an interrupt */ in test_timer()
174 if ((in_IntrStatus() & 0x4000) == 0) { in test_timer()
177 out_IntrStatus(0x4000); in test_timer()
194 dev_bar = qpci_iomap(pcidev, 0, &barsize); in test_init()
213 return 0; in main()