Tsunami.py (8839:eeb293859255) Tsunami.py (9338:97b4a2be1e5b)
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

32from AlphaBackdoor import AlphaBackdoor
33from Device import BasicPioDevice, IsaFake, BadAddr
34from Pci import PciConfigAll
35from Platform import Platform
36from Uart import Uart8250
37
38class TsunamiCChip(BasicPioDevice):
39 type = 'TsunamiCChip'
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

32from AlphaBackdoor import AlphaBackdoor
33from Device import BasicPioDevice, IsaFake, BadAddr
34from Pci import PciConfigAll
35from Platform import Platform
36from Uart import Uart8250
37
38class TsunamiCChip(BasicPioDevice):
39 type = 'TsunamiCChip'
40 cxx_header = "dev/alpha/tsunami_cchip.hh"
40 tsunami = Param.Tsunami(Parent.any, "Tsunami")
41
42class TsunamiIO(BasicPioDevice):
43 type = 'TsunamiIO'
41 tsunami = Param.Tsunami(Parent.any, "Tsunami")
42
43class TsunamiIO(BasicPioDevice):
44 type = 'TsunamiIO'
45 cxx_header = "dev/alpha/tsunami_io.hh"
44 time = Param.Time('01/01/2009',
45 "System time to use ('Now' for actual time)")
46 year_is_bcd = Param.Bool(False,
47 "The RTC should interpret the year as a BCD value")
48 tsunami = Param.Tsunami(Parent.any, "Tsunami")
49 frequency = Param.Frequency('1024Hz', "frequency of interrupts")
50
51class TsunamiPChip(BasicPioDevice):
52 type = 'TsunamiPChip'
46 time = Param.Time('01/01/2009',
47 "System time to use ('Now' for actual time)")
48 year_is_bcd = Param.Bool(False,
49 "The RTC should interpret the year as a BCD value")
50 tsunami = Param.Tsunami(Parent.any, "Tsunami")
51 frequency = Param.Frequency('1024Hz', "frequency of interrupts")
52
53class TsunamiPChip(BasicPioDevice):
54 type = 'TsunamiPChip'
55 cxx_header = "dev/alpha/tsunami_pchip.hh"
53 tsunami = Param.Tsunami(Parent.any, "Tsunami")
54
55class Tsunami(Platform):
56 type = 'Tsunami'
56 tsunami = Param.Tsunami(Parent.any, "Tsunami")
57
58class Tsunami(Platform):
59 type = 'Tsunami'
60 cxx_header = "dev/alpha/tsunami.hh"
57 system = Param.System(Parent.any, "system")
58
59 cchip = TsunamiCChip(pio_addr=0x801a0000000)
60 pchip = TsunamiPChip(pio_addr=0x80180000000)
61 pciconfig = PciConfigAll()
62 fake_sm_chip = IsaFake(pio_addr=0x801fc000370)
63
64 fake_uart1 = IsaFake(pio_addr=0x801fc0002f8)

--- 58 unchanged lines hidden ---
61 system = Param.System(Parent.any, "system")
62
63 cchip = TsunamiCChip(pio_addr=0x801a0000000)
64 pchip = TsunamiPChip(pio_addr=0x80180000000)
65 pciconfig = PciConfigAll()
66 fake_sm_chip = IsaFake(pio_addr=0x801fc000370)
67
68 fake_uart1 = IsaFake(pio_addr=0x801fc0002f8)

--- 58 unchanged lines hidden ---