1. Field of the Invention
The present invention relates to a card type peripheral apparatus and a host apparatus.
2. Description of the Related Art
There exist PC cards serving as various card type peripheral apparatuses which, when put to use, are attached to a host apparatus such as a personal computer. Known PC cards include the PCI Card that communicates via a PCI bus and the PCI ExpressCard that communicates over a PCI Express bus permitting higher data transfer rates than the PCI bus (see Japanese Patent Laid-open Nos. 2005-275909 and 2006-155183).
Illustratively, the PCI ExpressCard is standardized physically, electrically and logically. While complying with this standard, the PCI ExpressCard is subject to diverse device-specific control protocols that vary from one manufacturer to another.
The ExpressCard standard stipulates not only the shape and dimensions of the card but also the specifications of the slot and connectors of the host apparatus. For that reason, any ExpressCard complying with the ExpressCard standard can be physically connected to the host apparatus.
The PCI Express interface subsumed under the ExpressCard standard is also standardized electrically and logically. Thus any ExpressCard complying with the PCI Express standard can also be connected to the host apparatus electrically and logically.
On the other hand, the control protocols by which the host apparatus communicates with the cards have yet to be standardized. The control protocol specifications vary from one manufacturer to another and even from one device to another.
In the past, the host apparatus typically used a given combination of a vendor ID, a device ID, a revision ID, a subsystem ID, a subsystem vendor ID, and a class code as discriminating factors by which to identify only those cards that comply with a particular control protocol among diverse control protocols. Where different manufacturers using different devices fabricated cards subject to the same control protocol, connectivity (i.e., normal communication) between these cards on the one hand and the host apparatus on the other hand was guaranteed by having the host apparatus additionally furnished with information about the new card manufacturers and their devices being used.
The connectivity above has generally been ensured in the above-outlined manner by personal computer (PC) systems. Typically, a device driver corresponding to any newly introduced card is added to or updated in the host apparatus (i.e. PC system) over a network or using a suitable storage medium. The added or updated device driver supplies information about the new card manufacturer and their device to the host apparatus as additional discriminating factors.
There exist host apparatuses (electronic apparatuses) such as card-attachable cameras so designed as to be incapable of receiving, over a network or using a storage medium, device drivers corresponding to any newly introduced cards. This type of host apparatus may identify given cards in the same manner as PC systems. In that case, the host apparatus may identify and communicate with a first card subject to a given control protocol but may not communicate with a second card fabricated by a different manufacturer using a different device despite the fact that the second card complies with the same control protocol and is connectable physically, electrically and logically to the host apparatus.
The problem above is encountered by the host apparatus being incapable of discriminating the second card as one that can be controlled under the control protocol specific to the host apparatus in question. Since it is impossible to add or update device drivers in the host apparatus over a network or using a storage medium in order to reflect the information about the new card manufacturer and the new device, the host apparatus may have to be brought to its manufacturer or a service center for device driver update. This can be a serious problem contingent on the urgency of the user's need to use the electronic apparatus.
The present invention has been made in view of the above circumstances and provides a card type peripheral apparatus and a host apparatus such that the host apparatus can easily discriminate the protocol of the card type peripheral apparatus without recourse to a network or a storage medium.
In carrying out the present invention and according to one embodiment thereof, there is provided a card type peripheral apparatus connected to a host apparatus for communication therewith according to a specific protocol, the card type peripheral apparatus including a plurality of configuration registers configured to be accessible by the host apparatus and be set with diverse set information; wherein at least one of the plurality of configuration registers is a special register configured to be set with data arbitrarily selected and fixedly established by a vendor that either fabricates or markets the card type peripheral apparatus; and wherein the special register is set with protocol identification information for discriminating the specific protocol.
According to another embodiment of the present invention, there is provided a host apparatus for communicating with a card type peripheral apparatus having a plurality of configuration registers according to a specific protocol, at least one of the plurality of configuration registers being a special register configured to be set with data arbitrarily selected and fixedly established by a vendor that either fabricates or markets the card type peripheral apparatus, the host apparatus including: a reading unit configured to access the plurality of configuration registers so as to read protocol identification information for discriminating the specific protocol from the special register; and a communication control unit configured to communicate with the card type peripheral apparatus under the protocol found applicable to the card type peripheral apparatus based on the protocol identification information read by the reading unit.
According to the present invention, as outlined above, the protocol identification information for discriminating a specific protocol is set in a special register which is one of a plurality of configuration registers furnished in the card type peripheral apparatus. The special register is set with the identification information arbitrarily selected and fixedly established by the vendor that fabricates or markets the card type peripheral apparatus. These arrangements allow the host apparatus easily to discriminate or select the card type peripheral apparatus without using a network or a storage medium. Compared with traditional structures involving the use of the network or storage medium, the inventive arrangements significantly reduce the costs of developing, designing, and fabricating the host apparatus and card type peripheral.
Some preferred embodiments of the present invention will now be described with reference to the accompanying drawings.
In functional terms, the host apparatus 10 is structured to include an upper layer 12, a host memory 14, and a host controller 16.
The upper layer 12 is made up of hardware for creating image data and of software (applications) for controlling the hardware.
The host memory 14 accommodates diverse data and includes a memory that stores the above-mentioned software, a working memory, and a memory that retains actual data. The host controller 16 is constituted by hardware such as a CPU, a DMA and a communication interface and by software to be executed by the CPU. The host controller 16 has a card slot (not shown) which complies with the PCI ExpressCard standard and which permits communication with the attached card 20 via a communication channel 2 constituting a PCI Express bus.
The card 20 is structured to include a PCI Express device 22, a configuration space 24, an IO/memory space register 26, a nonvolatile memory 28, and an upper layer 30.
The PCI Express device 22 has a card connector (not shown) which complies with the PCI ExpressCard standard and which establishes communication with the host apparatus 10 via the communication channel 2 when attached to the card slot of the host apparatus 10. The PCI Express device 22 is formed by a CPU, a communication interface, and software to be executed by the CPU.
The configuration space 24 constitutes an address space which accommodates a plurality of configuration registers and which is part of the address space provided by the PCI Express bus for use by the host apparatus 10 in accessing the card 20.
The configuration registers are set with diverse set information defined by the PCI Express standard. The configuration space 24 and the configuration registers will be discussed later in more detail.
In this embodiment as the memory card, the upper layer 30 serves as a memory area that retains data in rewritable fashion. The IO/memory space register 26 is part of the address space used by the host apparatus 10 in accessing the card 20, the register 26 offering an address space for gaining access to the upper layer 30.
The nonvolatile memory 28 constitutes the storage unit of the present invention. As such, the nonvolatile memory 28 holds protocol identification information for discriminating and determining a specific protocol by which the host apparatus 10 communicates with the card 20. This memory is accessed (i.e., read) by the host apparatus 10 by way of registers accommodated in the configuration space 24. With this embodiment, the memory area making up the upper layer 30 and the nonvolatile memory 28 are formed by the same memory in hardware terms.
The physical specifications 20A comply with the PCI ExpressCard standard and define such physical parameters as the shape and dimensions of the card connector.
The electrical specifications 20B define such requirements as signal voltages and currents; the interface specifications 20C determine communication-related requirements on the physical level; and the configuration space specifications 20D stipulate the parameters regarding the areas established in the configuration space as will be discussed later. The electrical specifications 20B, interface specifications 20C, and configuration space specifications 20D all comply with the PCI Express standard.
The IO/memory space register specifications 20E define the requirements of the IO/memory space register 26. The control protocol specifications 20F principally determine the procedures for communication between the host apparatus 10 and the card 20 (upper layer 30) via the communication channel 2. As such, the control protocol specifications 20F may be established selectively by the manufacturers of the card 20 and may vary depending on the functionality of the card 20.
What follows is an explanation of the configurations space 24. A plurality of data areas are allocated in the configuration space 24. These data areas include a configuration space header (called CSH hereunder) shown in
The CSH area is described below by referring to
Basically, CSH is an area possessed by all PCI devices and PCI Express devices. CSH has a plurality of IDs (identifiers) set therein for identifying the card 20.
The IDs include a vendor ID uniquely assigned to each device vendor (device manufacturer), a device ID defined arbitrarily by each device vendor for in-house identification purposes, a revision ID indicating the device version and a history of device modifications, a class code assigned to identify the functionality of each device, a subsystem vendor ID uniquely assigned to each card vendor (card manufacturer), and a subsystem ID defined arbitrarily by each card vendor for in-house identification. These IDs are set in corresponding configuration registers such as a vendor ID register, a device ID register, a revision ID register, a class code register, a subsystem vendor ID register, and a subsystem ID register.
If the host apparatus were a personal computer or like equipment capable of acquiring additional device drivers using a network or a storage medium so as to reflect information about new card manufactures and their devices, then the host apparatus would work as follows: the host apparatus would first read the vendor ID, device ID, revision ID, class code, subsystem ID, and subsystem vendor ID from their corresponding configuration registers. Based on the retrieved ID data, the host apparatus would check to determine whether the card 20 in question (device) can be recognized as communicable under the protocol specific to the host apparatus or cannot be recognized and needs to have a corresponding device driver added anew. The host apparatus would take action based on the result of the check.
The host apparatus 10 of this embodiment does not have the capability above and thus proceeds to identify the device (card 20) by the procedures to be discussed later.
The VPD Cap area is described below by referring to
A field named “VPD Address” in VPD Cap contains the address to be read by the host apparatus 100 upon retrieval of the VPD data.
A field named “Next Pointer” will be discussed later.
A field named “ID” in VPD Cap contains the identifier for discriminating the VPD Cap area. In
A field named “VPD Data” contains data retrieved from the nonvolatile memory 28 and set to the first special register R1. The VPD data is data that may be arbitrarily selected and fixedly established by each vendor that fabricates or markets the card 20. As such, the VPD data includes protocol identification information.
The VS Cap area is described by referring to
VS Cap accommodates a second special register R2. In the configuration space, the addresses making up the VS Cap area may be determined arbitrarily by the vendor. The offset addresses for VS Cap range from 40h to FFh. A field named “Length” is set with data indicating the number of bytes making up the VS Cap area as a whole.
A field named “ID” in VS Cap contains the identifier for discriminating the VS Cap area. In
Because the VPD Cap area and the VS Cap area are not fixed-address areas, they are accessed using the following procedure: CSH has a list pointer (Cap. List. Ptr) pointing to the next address to be accessed in the configuration space as shown in
VPD Cap also has a list pointer (Next Pointer) pointing to the next address to be accessed in the configuration space as shown in
VS Cap also has a list pointer (Next Pointer) pointing to the next address to be accessed in the configuration space as shown in
Described below in reference to
The list pointer of the area X points to “5Ch,” so that the host apparatus 10 accesses an area Y at address 5Ch.
With the list pointer of the area Y pointing to “E0h,” the host apparatus 10 accesses an area Z at address E0h.
The list pointer of the area Z points to “00h,” so that the host apparatus 10 determines that there is no more area to be accessed and terminates its accessing process.
That is, the host apparatus 10 gains access to one area after another according to the values of the list pointers of the accessed areas, until the list pointer pointing to “00h” is reached.
This procedure for accessing a plurality of areas (registers) allocated in the configuration space is defined by the PCI Express standard (PCI standard).
What follows is a detailed description of how VPD data is read by use of the first special register R1 in VPD Cap.
For this embodiment, it is assumed that the protocol identification information is constituted by character string data composed of 29 characters in 29 bytes, “ABCDEFGHIJKLMNOPQRSTUVWXYZ012.” As shown in
As shown in
Of the data at address 00h, “82h” indicates the beginning of VPD data and “001dh” denotes the presence of an ensuing 29-byte character string, as shown in
What is contained in the first special register R1 is read by the host apparatus 10 in the manner described below.
Initially, the flag F is set to “1.”
The host apparatus 10 accesses VPD Cap according to the address held by the list pointer (Cap. List. Ptr) of CSH shown in
When VPD data is set to the first special register R1, the flag F is set to “1.”
Upon detecting that the flag F is set to “1,” the host apparatus 10 reads four bytes of the VPD address.
The above operations are repeated by incrementing the address set in the “VPD Address” field, until the 29-byte protocol identification information PRO has been read.
Whereas the VPD data is read out using the first special register R1 in units of four bytes that fit the four-byte “VPD Data” field in the register R1, the size of the VPD area (i.e., data size) is not limited to 64 bytes. The VPD data size, along with the data size of the protocol identification information PRO, may be varied as desired.
What follows is a detailed description of how VS data is read out using the second special register R2 in the VS Cap area.
The vendor data set in the second special register R2 includes protocol identification information.
For this embodiment, as mentioned above, the protocol identification information is assumed to be constituted by character string data composed of 29 characters in 29 bytes, “ABCDEFGHIJKLMNOPQRSTUVWXYZ012.” For purpose of simplification and illustration, the first and the second special registers R1 and R2 of this embodiment are assumed to contain the same protocol identification information. The first and the second special registers R1 and R2 may each contain the same protocol information, or may retain a first and a second half of a single train of protocol information.
A VS area (not shown) established in advance in the nonvolatile memory 28 is assigned 32 bytes in the case of this embodiment. The VS area accommodates the protocol identification information PRO composed of 29-byte data, as well as data necessary for reading the protocol identification information PRO from the second special register R2.
As shown in
As shown in
Unlike the case of the first special register R1, the data in the second special register R2 need not be read out in units of four bytes by designating one address after another; the 32-byte data can be read out all at once.
The host apparatus 10 thus reads data from the second special register R2 as follows: according to the address held by the list pointer (“Next Pointer” field) in VPD Cap shown in
The host apparatus 10 performs its identifying operation illustratively as described below.
The host apparatus 10 then attempts access to the CSH area. In step S12, the host apparatus 10 checks to determine whether the VPD Cap area can be accessed by referencing the value of the list pointer (Cap. List. Ptr) in the VPD Cap area. If the VPD Cap area is found accessible in step S12, then the host apparatus 10 goes to step S14 and checks to see if the protocol identification information PRO (card identifier) can be read. If the protocol identification information PRO is found readable in step S14, then the host apparatus 10 goes to step S16 and identifies the card 20, i.e., determines the specific protocol to be used based on the protocol identification information PRO. When the specific protocol is determined in accordance with the protocol identification information PRO, the host apparatus 10 starts communicating with the card 20 under that protocol.
If in step S12 the VPD Cap area is not found accessible (i.e., if the list pointer has no address pointing to a destination), that means there is no VPD Cap area in the configuration space. The host apparatus 10 then goes to step S18. In step S18, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
If in step S14 the protocol identification information PRO (card identifier) is not found readable, the host apparatus 10 also goes to step S18. In step S18, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
If in step S22 the VS Cap area is not found accessible (i.e., if the list pointer has no address pointing to a destination), that means there is no VS Cap area in the configuration space. The host apparatus 10 then goes to step S28. In step S28, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
If in step S24 the protocol identification information PRO (card identifier) is not found readable, the host apparatus 10 also goes to step S28. In step S28, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
If the protocol identification information PRO is found readable in step S34, then the host apparatus 10 goes to step S36 and checks to determine whether the VS Cap area can be accessed by referencing the list pointer (“Next Pointer” field) in the VPD Cap area. If the VS Cap area is found accessible in step S36, the host apparatus 10 goes to step S36 and checks to see if the protocol identification information PRO (card identifier) can be read. If in step S38 the protocol identification information PRO is found readable, then the host apparatus 10 goes to step S40 and identifies the card 20 based on both the protocol identification information PRO found in this step and the protocol identification information PRO read in step S34. That is, the host apparatus 10 in step S40 determines the specific protocol to be used in accordance with the protocol identification information PRO and starts communicating with the card 20 under that protocol.
If in step S32 the VPD Cap area is not found accessible (i.e., if the list pointer has no address pointing to a destination), that means there is no VPD Cap area in the configuration space. The host apparatus 10 then goes to step S42. In step S42, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
If in step S34 the protocol identification information PRO (card identifier) is not found readable, then the host apparatus 10 goes to step S42. In step S42, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
If in step S36 the VS Cap area is not found accessible (i.e., if the list pointer has no address pointing to a destination), that means there is no VS Cap area in the configuration space. The host apparatus 10 then goes to step S42. In step S42, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
If in step S38 the protocol identification information PRO (card identifier) is not found readable, the host apparatus 10 also goes to step S42. In step S42, the host apparatus 10 stops performing any further operation, recognizes the attached card 20 as an unknown device, and carries out necessary processing such as providing notification that an unknown device has been detected.
In this embodiment, the host controller 16 of the host apparatus 10 constitutes two units: a reading unit and a communication control unit. The reading unit accesses a plurality of configuration registers so as to read the protocol identification information PRO for discriminating the specific protocol from the first and the second special registers R1 and R2. The communication control unit communicates with the card 20 under the protocol found applicable to the card 20 based on the protocol identification information PRO read by the reading unit.
According to this embodiment, as described above, the protocol identification information for discriminating a specific protocol by which to establish communication between the host apparatus 10 and the card 20 is set in a special register or registers among a plurality of configuration registers furnished in the card 20. The special registers, along with their identification information, may be established arbitrarily and fixedly by the vendor. These arrangements allow the host apparatus 10 easily to discriminate or select the card type peripheral apparatus (i.e., protocol) without using a network or a storage medium. Compared with traditional structures involving the use of the network or storage medium, the inventive arrangements significantly reduce the costs of developing, designing, and fabricating the host apparatus 10 and the card 20.
The host apparatus 10 need not to be brought to its manufacturer or a service center in order to be furnished with additional discriminating factors. This aspect is also advantageous in terms of cost reduction. Because the special registers are part of the existing multiple configuration registers, there is no need to add new hardware or software to the host apparatus 10 or to the card 20. This is yet another advantage that contributes to reducing appreciably the costs of developing, designing, and fabricating the host apparatus 10 and the card 20.
The embodiment of the invention was described above as having both the first special register of VPD Cap and the second special register of VS Cap set with the protocol identification information PRO.
Alternatively, if either the first special register of VPD Cap or the second special register of VS Cap is assigned an area wide enough to accommodate the protocol identification information PRO, then solely that register may be utilized to have the PRO setting.
This embodiment was described above as supplementing the CSH area with both the VPD Cap area and the VS Cap area. The CSH area was shown accessed first to make reference to the value of its list pointer (Cap. List. Ptr), the list pointer value being used to access the VPD Cap area. With the VPD Cap area accessed, the value of its list pointer (“Next Pointer” Field) was shown referenced next to access the VS Cap area. Alternatively, the CSH area may be first accessed to make reference to the value of its list pointer (Cap. List. Ptr), the list pointer value being used to access the VS Cap area. With the VS Cap area accessed, the value of its pointer (“Next Pointer” field) may be referenced next to access the VPD Cap area.
As another alternative, the CSH area may be supplemented by either the VPD Cap area or the VS Cap area alone in the configuration space. In this case, either the VPD Cap area or the VS Cap area may be accessed by making reference to the value of the list pointer (Cap. List. Ptr) in the CSH area.
It is not mandatory to set the list pointer (Cap. List. Ptr) of CSH with the address of the VPD Cap area or with the address of the VS Cap area. Obviously, the CSH list pointer may instead be set with the address of any area other than the CSH area, VPD Cap area, or VS Cap area discussed above.
This embodiment was described above as having the host apparatus 10 practiced as a camera and the card 20 as a memory card. Alternatively, the host apparatus 10 may be any suitable apparatus as long as it can communicate with the card 20. The card 20 may also be any suitable apparatus as long as it is capable of communicating with the host apparatus 10.
A major characteristic of the present invention is that the protocol identification information for discriminating a specific protocol is set in a special register or registers among a plurality of configuration registers furnished in the card, the special registers being allowed to be established arbitrarily and fixedly by the vendor. The bus for connecting the host apparatus 10 with the card 20 may be any suitable bus and is not limited to the PCI Express bus discussed above.
It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and alterations may occur depending on design requirements and other factor in so far as they are within the scope of the appended claims or the equivalents thereof.
Number | Date | Country | Kind |
---|---|---|---|
P2006-183802 | Jul 2006 | JP | national |
This application is a continuation of U.S. patent application Ser. No. 11/825,120, filed Jul. 2, 2007, which claims priority from Japanese Patent Application No. JP 2006-183802 filed with the Japanese Patent Office on Jul. 3, 2006, the disclosures of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
6256692 | Yoda et al. | Jul 2001 | B1 |
6941405 | Morrow | Sep 2005 | B2 |
7103743 | Goldschmidt | Sep 2006 | B2 |
7577830 | Porterfield | Aug 2009 | B2 |
7606964 | Lee et al. | Oct 2009 | B2 |
20040010678 | Whitt | Jan 2004 | A1 |
20050138288 | Chou et al. | Jun 2005 | A1 |
20050251609 | Chou et al. | Nov 2005 | A1 |
20060117123 | Izumida | Jun 2006 | A1 |
20080071963 | Chow et al. | Mar 2008 | A1 |
Number | Date | Country |
---|---|---|
2002033786 | Jan 2002 | JP |
2004229038 | Aug 2004 | JP |
2005-275909 | Oct 2005 | JP |
2006-155183 | Jun 2006 | JP |
Number | Date | Country | |
---|---|---|---|
20110078338 A1 | Mar 2011 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11825120 | Jul 2007 | US |
Child | 12949037 | US |