Ignore:
Timestamp:
2014-01-19T14:37:22Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf982ff
Parents:
2f591127 (diff), 476f62c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/mm/as.h

    r2f591127 r5828554  
    11/*
    2  * Copyright (c) 2011 Jiri Michalec
     2 * Copyright (c) 2010 Martin Decky
     3 * Copyright (c) 2013 Jakub Klama
    34 * All rights reserved.
    45 *
     
    2728 */
    2829
    29 /** @addtogroup libc
     30/** @addtogroup sparc32mm
    3031 * @{
    3132 */
     
    3334 */
    3435
    35 #ifndef LIBC_DEVICE_PCI_H_
    36 #define LIBC_DEVICE_PCI_H_
     36#ifndef KERN_sparc32_AS_H_
     37#define KERN_sparc32_AS_H_
    3738
    38 #include <async.h>
     39#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH  0
    3940
    40 #define PCI_DEVICE_ID  0x02
     41#define KERNEL_ADDRESS_SPACE_START_ARCH  UINT32_C(0x80000000)
     42#define KERNEL_ADDRESS_SPACE_END_ARCH    UINT32_C(0xffffffff)
     43#define USER_ADDRESS_SPACE_START_ARCH    UINT32_C(0x00000000)
     44#define USER_ADDRESS_SPACE_END_ARCH      UINT32_C(0x7fffffff)
    4145
    42 typedef enum {
    43         IPC_M_CONFIG_SPACE_READ_8,
    44         IPC_M_CONFIG_SPACE_READ_16,
    45         IPC_M_CONFIG_SPACE_READ_32,
    46        
    47         IPC_M_CONFIG_SPACE_WRITE_8,
    48         IPC_M_CONFIG_SPACE_WRITE_16,
    49         IPC_M_CONFIG_SPACE_WRITE_32
    50 } pci_dev_iface_funcs_t;
     46typedef struct {
     47} as_arch_t;
    5148
    52 extern int pci_config_space_read_8(async_sess_t *, uint32_t, uint8_t *);
    53 extern int pci_config_space_read_16(async_sess_t *, uint32_t, uint16_t *);
    54 extern int pci_config_space_read_32(async_sess_t *, uint32_t, uint32_t *);
     49#include <genarch/mm/as_pt.h>
    5550
    56 extern int pci_config_space_write_8(async_sess_t *, uint32_t, uint8_t);
    57 extern int pci_config_space_write_16(async_sess_t *, uint32_t, uint16_t);
    58 extern int pci_config_space_write_32(async_sess_t *, uint32_t, uint32_t);
     51#define as_constructor_arch(as, flags)  (as != as)
     52#define as_destructor_arch(as)          (as != as)
     53#define as_create_arch(as, flags)       (as != as)
     54#define as_deinstall_arch(as)
     55#define as_invalidate_translation_cache(as, page, cnt)
     56
     57extern uintptr_t as_context_table;
     58
     59extern void as_arch_init(void);
    5960
    6061#endif
Note: See TracChangeset for help on using the changeset viewer.