Previous 199869 Revisions Next

r33456 Thursday 20th November, 2014 at 12:35:01 UTC by Olivier Galibert
i6300esb: Document more registers [O. Galibert]
[src/emu/machine]i6300esb.c i6300esb.h

trunk/src/emu/machine/i6300esb.c
r241967r241968
3939   AM_RANGE(0x88, 0x8b) AM_READWRITE8 (d31_err_cfg_r,          d31_err_cfg_w,          0x000000ff)
4040   AM_RANGE(0x88, 0x8b) AM_READWRITE8 (d31_err_sts_r,          d31_err_sts_w,          0x00ff0000)
4141   AM_RANGE(0x90, 0x93) AM_READWRITE16(pci_dma_cfg_r,          pci_dma_cfg_w,          0x0000ffff)
42   AM_RANGE(0xa0, 0xa3) AM_READWRITE16(gen_pmcon_1_r,          gen_pmcon_1_w,          0x0000ffff)
43   AM_RANGE(0xa0, 0xa3) AM_READWRITE16(gen_pmcon_2_r,          gen_pmcon_2_w,          0xffff0000)
44   AM_RANGE(0xa4, 0xa7) AM_READWRITE8 (gen_pmcon_3_r,          gen_pmcon_3_w,          0x000000ff)
45   AM_RANGE(0xac, 0xaf) AM_READWRITE  (rst_cnt2_r,             rst_cnt2_w)
46   AM_RANGE(0xb0, 0xb3) AM_READWRITE8 (apm_cnt_r,              apm_cnt_w,              0x00ff0000)
47   AM_RANGE(0xb0, 0xb3) AM_READWRITE8 (apm_sts_r,              apm_sts_w,              0xff000000)
48   AM_RANGE(0xb8, 0xbb) AM_READWRITE  (gpi_rout_r,             gpi_rout_w)
49   AM_RANGE(0xc0, 0xc3) AM_READWRITE8 (mon_fwd_en_r,           mon_fwd_en_w,           0x000000ff)
50   AM_RANGE(0xc4, 0xcb) AM_READWRITE16(mon_trp_rng_r,          mon_trp_rng_w,          0xffffffff)
51   AM_RANGE(0xcc, 0xcf) AM_READWRITE16(mon_trp_msk_r,          mon_trp_msk_w,          0x0000ffff)
4252   AM_RANGE(0xd0, 0xd3) AM_READWRITE  (gen_cntl_r,             gen_cntl_w)
4353   AM_RANGE(0xd4, 0xd7) AM_READWRITE8 (gen_sta_r,              gen_sta_w,              0x000000ff)
4454   AM_RANGE(0xd4, 0xd7) AM_READWRITE8 (back_cntl_r,            back_cntl_w,            0x0000ff00)
r241967r241968
96106   etr1 = 0x00000000;
97107   siu_config_port = 0;
98108   siu_config_state = 0;
109   gen_pmcon_1 = 0;
110   gen_pmcon_2 = 0;
111   gen_pmcon_3 = 0;
112   rst_cnt2 = 0;
113   apm_cnt = 0;
114   apm_sts = 0;
115   gpi_rout = 0;
116   mon_fwd_en = 0;
117   memset(mon_trp_rng, 0, sizeof(mon_trp_rng));
118   mon_trp_msk = 0;
99119}
100120
101121void i6300esb_lpc_device::reset_all_mappings()
r241967r241968
256276   logerror("%s: pci_dma_cfg = %04x\n", tag(), pci_dma_cfg);
257277}
258278
279READ16_MEMBER (i6300esb_lpc_device::gen_pmcon_1_r)
280{
281   return gen_pmcon_1;
282}
283
284WRITE16_MEMBER(i6300esb_lpc_device::gen_pmcon_1_w)
285{
286   COMBINE_DATA(&gen_pmcon_1);
287   logerror("%s: gen_pmcon_1 = %04x\n", tag(), gen_pmcon_1);
288}
289
290READ16_MEMBER (i6300esb_lpc_device::gen_pmcon_2_r)
291{
292   return gen_pmcon_2;
293}
294
295WRITE16_MEMBER(i6300esb_lpc_device::gen_pmcon_2_w)
296{
297   COMBINE_DATA(&gen_pmcon_2);
298   logerror("%s: gen_pmcon_2 = %04x\n", tag(), gen_pmcon_2);
299}
300
301READ8_MEMBER  (i6300esb_lpc_device::gen_pmcon_3_r)
302{
303   return gen_pmcon_3;
304}
305
306WRITE8_MEMBER (i6300esb_lpc_device::gen_pmcon_3_w)
307{
308   gen_pmcon_3 = data;
309   logerror("%s: gen_pmcon_3 = %02x\n", tag(), gen_pmcon_3);
310}
311
312READ32_MEMBER (i6300esb_lpc_device::rst_cnt2_r)
313{
314   return rst_cnt2;
315}
316
317WRITE32_MEMBER(i6300esb_lpc_device::rst_cnt2_w)
318{
319   COMBINE_DATA(&rst_cnt2);
320   logerror("%s: rst_cnt2 = %08x\n", tag(), rst_cnt2);
321}
322
323READ8_MEMBER  (i6300esb_lpc_device::apm_cnt_r)
324{
325   return apm_cnt;
326}
327
328WRITE8_MEMBER (i6300esb_lpc_device::apm_cnt_w)
329{
330   apm_cnt = data;
331   logerror("%s: apm_cnt = %02x\n", tag(), apm_cnt);
332}
333
334READ8_MEMBER  (i6300esb_lpc_device::apm_sts_r)
335{
336   return apm_sts;
337}
338
339WRITE8_MEMBER (i6300esb_lpc_device::apm_sts_w)
340{
341   apm_sts = data;
342   logerror("%s: apm_sts = %02x\n", tag(), apm_sts);
343}
344
345READ32_MEMBER (i6300esb_lpc_device::gpi_rout_r)
346{
347   return gpi_rout;
348}
349
350WRITE32_MEMBER(i6300esb_lpc_device::gpi_rout_w)
351{
352   COMBINE_DATA(&gpi_rout);
353   logerror("%s: gpi_rout = %08x\n", tag(), gpi_rout);
354}
355
356READ8_MEMBER  (i6300esb_lpc_device::mon_fwd_en_r)
357{
358   return mon_fwd_en;
359}
360
361WRITE8_MEMBER (i6300esb_lpc_device::mon_fwd_en_w)
362{
363   mon_fwd_en = data;
364   logerror("%s: mon_fwd_en = %02x\n", tag(), mon_fwd_en);
365}
366
367READ16_MEMBER (i6300esb_lpc_device::mon_trp_rng_r)
368{
369   return mon_trp_rng[offset];
370}
371
372WRITE16_MEMBER(i6300esb_lpc_device::mon_trp_rng_w)
373{
374   COMBINE_DATA(&mon_trp_rng[offset]);
375   logerror("%s: mon_trp_rng[%d] = %04x\n", tag(), 4+offset, mon_trp_rng[offset]);
376}
377
378READ16_MEMBER (i6300esb_lpc_device::mon_trp_msk_r)
379{
380   return mon_trp_msk;
381}
382
383WRITE16_MEMBER(i6300esb_lpc_device::mon_trp_msk_w)
384{
385   COMBINE_DATA(&mon_trp_msk);
386   logerror("%s: mon_trp_msk = %04x\n", tag(), mon_trp_msk);
387}
388
259389READ32_MEMBER (i6300esb_lpc_device::gen_cntl_r)
260390{
261391   return gen_cntl;
trunk/src/emu/machine/i6300esb.h
r241967r241968
2929private:
3030   DECLARE_ADDRESS_MAP(internal_io_map, 32);
3131
32   UINT32 pmbase, gpio_base, fwh_sel1, gen_cntl, etr1;
33   UINT16 bios_cntl, pci_dma_cfg, gen1_dec, lpc_en, gen2_dec, fwh_sel2, func_dis;
32   UINT32 pmbase, gpio_base, fwh_sel1, gen_cntl, etr1, rst_cnt2, gpi_rout;
33   UINT16 bios_cntl, pci_dma_cfg, gen1_dec, lpc_en, gen2_dec, fwh_sel2, func_dis, gen_pmcon_1, gen_pmcon_2;
34   UINT16 mon_trp_rng[4], mon_trp_msk;
3435   UINT8 pirq_rout[8];
3536   UINT8 acpi_cntl, tco_cntl, gpio_cntl, serirq_cntl, d31_err_cfg, d31_err_sts, gen_sta, back_cntl, rtc_conf;
3637   UINT8 lpc_if_com_range, lpc_if_fdd_lpt_range, lpc_if_sound_range, fwh_dec_en1, fwh_dec_en2, siu_config_port;
38   UINT8 gen_pmcon_3, apm_cnt, apm_sts, mon_fwd_en;
3739   int siu_config_state;
3840
3941   DECLARE_WRITE8_MEMBER (nop_w);
r241967r241968
6365   DECLARE_WRITE8_MEMBER (d31_err_sts_w);
6466   DECLARE_READ16_MEMBER (pci_dma_cfg_r);          // 90
6567   DECLARE_WRITE16_MEMBER(pci_dma_cfg_w);
68   DECLARE_READ16_MEMBER (gen_pmcon_1_r);          // a0
69   DECLARE_WRITE16_MEMBER(gen_pmcon_1_w);
70   DECLARE_READ16_MEMBER (gen_pmcon_2_r);          // a2
71   DECLARE_WRITE16_MEMBER(gen_pmcon_2_w);
72   DECLARE_READ8_MEMBER  (gen_pmcon_3_r);          // a4
73   DECLARE_WRITE8_MEMBER (gen_pmcon_3_w);
74   DECLARE_READ32_MEMBER (rst_cnt2_r);             // ac
75   DECLARE_WRITE32_MEMBER(rst_cnt2_w);
76   DECLARE_READ8_MEMBER  (apm_cnt_r);              // b2
77   DECLARE_WRITE8_MEMBER (apm_cnt_w);
78   DECLARE_READ8_MEMBER  (apm_sts_r);              // b3
79   DECLARE_WRITE8_MEMBER (apm_sts_w);
80   DECLARE_READ32_MEMBER (gpi_rout_r);             // b8
81   DECLARE_WRITE32_MEMBER(gpi_rout_w);
82   DECLARE_READ8_MEMBER  (mon_fwd_en_r);           // c0
83   DECLARE_WRITE8_MEMBER (mon_fwd_en_w);
84   DECLARE_READ16_MEMBER (mon_trp_rng_r);          // c4-ca
85   DECLARE_WRITE16_MEMBER(mon_trp_rng_w);
86   DECLARE_READ16_MEMBER (mon_trp_msk_r);          // cc
87   DECLARE_WRITE16_MEMBER(mon_trp_msk_w);
6688   DECLARE_READ32_MEMBER (gen_cntl_r);             // d0
6789   DECLARE_WRITE32_MEMBER(gen_cntl_w);
6890   DECLARE_READ8_MEMBER  (gen_sta_r);              // d4


Previous 199869 Revisions Next


© 1997-2024 The MAME Team