Subject: Re: dereferencing pointer to incomplete type????
To: Steven Grunza <steven_grunza@ieee.org>
From: Greywolf <greywolf@starwolf.com>
List: tech-kern
Date: 03/16/2001 14:23:30
On Fri, 16 Mar 2001, Steven Grunza wrote:
# I'm getting a "dereferencing pointer to incomplete type" error on the
# following line:
#
# tag = sc_p->plx_reg_tag;
#
# sc_p and tag are defined in the function to be:
#
# struct jag_softc *sc_p;
# bus_space_tage_t tag;
^
First question: Is that a typo?
# sc_p = jag_cd.cd_devs[ dev & 0xFF ];
#
# The structure of my jag_softc is:
#
# struct jag_softc
# {
# struct device sc_dev; /* base device */
# void *sc_ih; /* interrupt vectoring */
# bus_space_tag_t plx_reg_tag; /* BAR0 -- internal plx regs */
# bus_space_handle_t plx_reg_handle;
# bus_space_tag_t s0_tag; /* BAR2 -- board mem window
# */
# bus_space_handle_t s0_handle;
# bus_space_tag_t s1_tag; /* BAR3 -- board IO window
# */
# bus_space_handle_t s1_handle;
# bus_dma_tag_t sc_dmatag; /* DMA tag */
#
# /* structure members above here seem to be required by NetBSD
# */
# JAG_STATE_E board_state[JAG_MAX_BOARDS];
# bus_space_handle_t board_bus_handles[JAG_MAX_BOARDS];
# u_int32_t board_opens[JAG_MAX_BOARDS];
# bus_dma_segment_t dma_seg;
# bus_dmamap_t dmahandle;
# caddr_t *kva_p;
# };
#
#
# If anyone has any clues as to what I've done wrong, please let me
# know...
#
#
# --
# "Luke, you're going to find that many | Steven Grunza
# of the truths we cling to depend | voice: (856) 787 - 2759
# greatly on our own point of view." | fax: (856) 866 - 2033
# - Obi Wan Kenobi, Return of the Jedi | e-mail: steven_grunza@ieee.org
#
#
#
--*greywolf;
--
*BSD: Where do you want to have the power to serve tomorrow today?